Bug 1080296 - Clear out glGetError after checking it. - r=kamidphish

This commit is contained in:
jdashg 2014-10-07 15:17:42 -07:00
parent ec25ccaa2e
commit db4dc7eea4

View File

@ -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)