Skip to content

Commit

Permalink
Fixes Bug #2191,incorrect test for egl_context validity
Browse files Browse the repository at this point in the history
Thanks David Binderman!
  • Loading branch information
gabomdq committed Oct 31, 2013
1 parent 804e579 commit e651ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_egl.c
Expand Up @@ -394,7 +394,7 @@ SDL_EGL_DeleteContext(_THIS, SDL_GLContext context)
return;
}

if (!egl_context && egl_context != EGL_NO_CONTEXT) {
if (egl_context != NULL && egl_context != EGL_NO_CONTEXT) {
SDL_EGL_MakeCurrent(_this, NULL, NULL);
_this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context);
}
Expand Down

0 comments on commit e651ab1

Please sign in to comment.