opengl: wglMakeCurrent should call glflush before proceeding

Chris Robinson chris.kcat at gmail.com
Sun Feb 22 08:27:15 CST 2009


On Saturday 21 February 2009 2:00:26 pm Jérôme Gardou wrote:
> according to
> http://msdn.microsoft.com/en-us/library/dd374387(VS.85).aspx,
> wglMakeCurrent proceeds a flush before switching.
glXMakeCurrent also forces a flush:
http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/glx/xmakecurrent.html

If it needs a wglFlush, it should call X11DRV_wglFlush (and only if there's a 
current context; you can't call gl* functions without one set). It can be an 
exceptionally costly call though, especially if it's going to be flushed again 
immediately after, so unless it's needed to fix some bug, I'd recommend not 
flushing explicitly.



More information about the wine-devel mailing list