mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 03:38:18 +02:00
egl: Fix deref before NULL-check
This commit is contained in:
parent
9456e22c7a
commit
2c343af098
1 changed files with 2 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ static EGLBoolean
|
|||
_eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
|
||||
{
|
||||
_EGLThreadInfo *t = _eglGetCurrentThread();
|
||||
_EGLDisplay *dpy = ctx->Resource.Display;
|
||||
_EGLDisplay *dpy;
|
||||
EGLint conflict_api;
|
||||
EGLBoolean surfaceless;
|
||||
|
||||
|
|
@ -315,6 +315,7 @@ _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
|
|||
return EGL_TRUE;
|
||||
}
|
||||
|
||||
dpy = ctx->Resource.Display;
|
||||
switch (_eglGetContextAPIBit(ctx)) {
|
||||
case EGL_OPENGL_ES_BIT:
|
||||
surfaceless = dpy->Extensions.KHR_surfaceless_gles1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue