diff --git a/gfx/thebes/GLContextProviderGLX.cpp b/gfx/thebes/GLContextProviderGLX.cpp index 7df1df545e78..52bafed42f3b 100644 --- a/gfx/thebes/GLContextProviderGLX.cpp +++ b/gfx/thebes/GLContextProviderGLX.cpp @@ -254,12 +254,14 @@ public: GLXContext context; nsRefPtr glContext; - bool error = false; + bool error; ScopedXErrorHandler xErrorHandler; TRY_AGAIN_NO_SHARING: + error = false; + context = sGLXLibrary.xCreateNewContext(display, cfg, GLX_RGBA_TYPE,