Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!
This commit is contained in:
parent
d640f886b5
commit
b759f643c6
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ SDL_EGL_DeleteContext(_THIS, SDL_GLContext context)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!egl_context && egl_context != EGL_NO_CONTEXT) {
|
if (egl_context != NULL && egl_context != EGL_NO_CONTEXT) {
|
||||||
SDL_EGL_MakeCurrent(_this, NULL, NULL);
|
SDL_EGL_MakeCurrent(_this, NULL, NULL);
|
||||||
_this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context);
|
_this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue