Bug 987845 - Avoid unconditionally calling eglGetError() after each EGL MakeCurrent operation - r=bjacob,vlad,jgilbert - anyone else?

This commit is contained in:
Jukka Jylanki 2014-03-25 20:23:58 -04:00
Родитель 6fb124d929
Коммит 85788aa2c5
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -374,8 +374,8 @@ GLContextEGL::MakeCurrentImpl(bool aForce) {
succeeded = sEGLLibrary.fMakeCurrent(EGL_DISPLAY(),
surface, surface,
mContext);
int eglError = sEGLLibrary.fGetError();
if (!succeeded) {
int eglError = sEGLLibrary.fGetError();
if (eglError == LOCAL_EGL_CONTEXT_LOST) {
mContextLost = true;
NS_WARNING("EGL context has been lost.");