am 63108c34: fix a possible null dereference when eglMakeCurrent() fails

* commit '63108c34ec181e923b68ee840bb7960f205466a7':
  fix a possible null dereference when eglMakeCurrent() fails
This commit is contained in:
Mathias Agopian 2013-09-06 15:06:41 -07:00 committed by Android Git Automerger
commit 455ab58c09

View File

@ -745,7 +745,8 @@ EGLBoolean eglMakeCurrent( EGLDisplay dpy, EGLSurface draw,
}
} else {
// this will ALOGE the error
result = setError(c->cnx->egl.eglGetError(), EGL_FALSE);
egl_connection_t* const cnx = &gEGLImpl;
result = setError(cnx->egl.eglGetError(), EGL_FALSE);
}
return result;
}