Bug 735230 - Part 4: Don't call MakeCurrent with a context and without a surface. r=gw280

This commit is contained in:
Ali Juma 2012-03-28 18:00:41 -04:00
Родитель b8383ddc8e
Коммит 3918b9d6e4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -434,7 +434,7 @@ public:
// but we will be able to do things like resource releases.
succeeded = sEGLLibrary.fMakeCurrent(EGL_DISPLAY(),
EGL_NO_SURFACE, EGL_NO_SURFACE,
mContext);
EGL_NO_CONTEXT);
if (!succeeded && sEGLLibrary.fGetError() == LOCAL_EGL_CONTEXT_LOST) {
mContextLost = true;
NS_WARNING("EGL context has been lost.");