winex11: added missing sync_current_drawable calls

plams blaagraa at gmail.com
Thu Aug 9 08:59:59 CDT 2007


Hey.

Here's a patch to fix a regression since 0.9.28 (in response to bug
9029). OpenGL scissoring had apparently been wrapped in commit
715d0e84097cb2dc07369c4e1cec8cf8a41e9035 but it seems that it made it
possible to make a glDisable(GL_SCISSOR_TEST) call that would leave GL
in some pseudo-state where the scissor test was STILL active (and vice
versa for glEnable) until e.g. a wglMakeCurrent or wglViewport call
was made. This patch should fix that (and thus resolve bug 9029).

Changelog:
* Added sync_current_drawable calls to wglEnable and wglDisable to
prevent GL scissoring state from going out of sync
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-OpenGL-state-could-get-out-of-sync.-Fixed.patch
Type: application/octet-stream
Size: 930 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070809/f70344b2/0001-OpenGL-state-could-get-out-of-sync.-Fixed.obj


More information about the wine-patches mailing list