Don't crash when called with a NULL gl context

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Tue Dec 19 10:02:56 CST 2006


Errors are essentially ignored in OpenGL. The function that provoked the
error should have no effect on the current state. OpenGL does keep track of
the last error in the context but when no context is available glGetError
returns GL_INVALID_OPERATION. Since we forward calls to the underlying
glGetError implementation we don't need to do anything special.


---
 dlls/winex11.drv/opengl.c |   38 +++++++++++++++++++++++++-------------
 1 files changed, 25 insertions(+), 13 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e908a10ead6500762d5109111b8d7613949ce2e8.diff
Type: text/x-patch
Size: 2160 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061219/3b3c430a/e908a10ead6500762d5109111b8d7613949ce2e8.bin


More information about the wine-patches mailing list