fix a possible null dereference when eglMakeCurrent() fails
Bug: 10648797 Change-Id: Iee0be47f2646feb25de4ea199bbb9b707452916e
This commit is contained in:
parent
77414216cd
commit
63108c34ec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user