OpenGL32: remove glx context

Roderick Colenbrander thunderbird2k at
Fri Nov 3 14:55:36 CST 2006


This patch removes creation of a GLX context at opengl32 startup.

The old code created a GLX context at startup, so that programs could call glGet* functions like glGetString before creating an OpenGL context. The OpenGL standards don't allow this and I verified this on winxp/win98 and as expected calling glGet* before creating a context returns NULL as documented everywhere.

The the code was originally added for a game called Homeworld which called wglGet* before creating a context. Atleast the first version of the game made this call but I haven't seen this behaviour in the source code of the game (which is public). Most likely it was a bug in the first version of the game.

Roderick Colenbrander
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wgl_remove_glx_context.patch
Type: text/x-patch
Size: 3687 bytes
Desc: not available
Url :

More information about the wine-patches mailing list