fix a possible null dereference when eglMakeCurrent() fails

Bug: 10648797
Change-Id: Iee0be47f2646feb25de4ea199bbb9b707452916e
This commit is contained in:
Mathias Agopian 2013-09-06 13:36:49 -07:00
parent 77414216cd
commit 63108c34ec
1 changed files with 2 additions and 1 deletions

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;
}