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
parent 827ab27605
commit 383cfa2fde

View File

@ -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.");