Not logged inOpenClonk Forum
Up Topic Mac?

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther

> fixing the bugs that crash OC on startup and shutdown (wrong OpenGL initialization order, according to Günther)


More precisely, the problem is that D3D has to be initialized before setting the video mode, but OpenGL has to be initialized after changing the video mode with SDL. For Win32 and X11, OpenGL only needs the window, but not the changed video mode, thus can use the same order as D3D. Considering the already sorry state of the D3D port, I simply changed the order to accommodate the SDL port. In the longer term, we could move the video-mode-setting back into DDrawInit. Splitting it up was done in order to make ingame resolution changes sane, but the different initialization order requirements make that untenable.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill