* commit '455ab58c09bb6ba76b264523c3cd28a1a68fb5fc': fix a possible null dereference when eglMakeCurrent() fails
This commit is contained in:
commit
68fc607e3d
@ -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