mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1080296 - Clear out glGetError after checking it. - r=kamidphish
This commit is contained in:
parent
ec25ccaa2e
commit
db4dc7eea4
@ -191,6 +191,8 @@ ParseGLVersion(GLContext* gl, unsigned int* version)
|
||||
|
||||
// If it's not an OpenGL (ES) 3.0 context, we will have an error
|
||||
error = gl->fGetError();
|
||||
while (gl->fGetError() != LOCAL_GL_NO_ERROR);
|
||||
|
||||
if (error == LOCAL_GL_NO_ERROR &&
|
||||
majorVersion > 0 &&
|
||||
minorVersion >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user