зеркало из https://github.com/mozilla/gecko-dev.git
Bug 987845 - Avoid unconditionally calling eglGetError() after each EGL MakeCurrent operation - r=bjacob,vlad,jgilbert - anyone else?
This commit is contained in:
Родитель
6fb124d929
Коммит
85788aa2c5
|
@ -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.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче