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:
commit
455ab58c09
@ -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