Bug 599466 - OpenGL function glGetError called on wrong GL context from GLDebugPrintError from ThebesLayerOGL::Destroy - r=vladimir, a=blocking-beta7

This commit is contained in:
Benoit Jacob 2010-09-27 16:20:07 -04:00
parent 20f9a22235
commit 500e111cce

View File

@ -1337,6 +1337,7 @@ public:
inline void
GLDebugPrintError(GLContext* aCx, const char* const aFile, int aLine)
{
aCx->MakeCurrent();
GLenum err = aCx->fGetError();
if (err) {
printf_stderr("GL ERROR: 0x%04x at %s:%d\n", err, aFile, aLine);