Explorar o código

Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!

Gabriel Jacobo %!s(int64=12) %!d(string=hai) anos
pai
achega
e651ab12b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/SDL_egl.c

+ 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);
     }