Bug 728041 - Only release the surface and not the context. r=ajuma

This commit is contained in:
George Wright 2012-02-24 16:20:15 -05:00
parent b389f9539b
commit bdb94ebc01

View File

@ -1138,7 +1138,7 @@ public:
// 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.");