Bug 728041 - Only release the surface and not the context. r=ajuma
authorGeorge Wright <george@mozilla.com>
Fri, 24 Feb 2012 16:20:15 -0500
changeset 89252 d50f3465ce1710d620672b6b6f0e3171169e9fbe
parent 89251 348653903677255dee311c521b851102a2260c73
child 89253 28019f9120c1fc856752a7b7c0d77cdef3e6f360
push id22242
push userkgupta@mozilla.com
push dateWed, 14 Mar 2012 15:19:09 +0000
treeherdermozilla-central@936ef50fa498 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersajuma
bugs728041
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 728041 - Only release the surface and not the context. r=ajuma
gfx/gl/GLContextProviderEGL.cpp
--- a/gfx/gl/GLContextProviderEGL.cpp
+++ b/gfx/gl/GLContextProviderEGL.cpp
@@ -1133,17 +1133,17 @@ public:
         // still expensive.
 #ifndef MOZ_WIDGET_QT
         if (!mSurface) {
             // We need to be able to bind NO_SURFACE when we don't
             // have access to a surface. We won't be drawing to the screen
             // but we will be able to do things like resource releases.
             succeeded = sEGLLibrary.fMakeCurrent(EGL_DISPLAY(),
                                                  EGL_NO_SURFACE, EGL_NO_SURFACE,
-                                                 EGL_NO_CONTEXT);
+                                                 mContext);
             if (!succeeded && sEGLLibrary.fGetError() == LOCAL_EGL_CONTEXT_LOST) {
                 mContextLost = true;
                 NS_WARNING("EGL context has been lost.");
             }
             NS_ASSERTION(succeeded, "Failed to make GL context current!");
             return succeeded;
         }
 #endif