WineD3D: don't call ActivateContext between ENTER_GL/LEAVE_GL

Roderick Colenbrander thunderbird2k at
Mon Aug 6 09:34:00 CDT 2007


This patch moves ActivateContext out of ENTER_GL/LEAVE_GL blocks. At the 
moment this change doesn't look very useful as ENTER_GL/LEAVE_GL is now 
inside ActivateContext but it will be useful after the WGL move.

When we move to WGL, no GDI calls (including wglCreateContext/wglMakeCurrent 
and a few others) are allowed between ENTER_GL/LEAVE_GL. As ActivateContext 
will make a lot of wgl calls it should take care of ENTER_GL itself.

Roderick Colenbrander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-This-patch-makes-sure-that-ActivateContext-isn-t-cal.patch
Type: text/x-diff
Size: 23227 bytes
Desc: not available
Url :

More information about the wine-patches mailing list