Skip to content
Permalink
Browse files

Fixes Bug #2191,incorrect test for egl_context validity

Thanks David Binderman!
  • Loading branch information
gabomdq committed Oct 31, 2013
1 parent 804e579 commit e651ab12b6cfa19442d1a487317056c7bc04219e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_egl.c
@@ -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);
}

0 comments on commit e651ab1

Please sign in to comment.