Fixes Bug #2191,incorrect test for egl_context validity
authorGabriel Jacobo <gabomdq@gmail.com>
Thu, 31 Oct 2013 10:02:21 -0300
changeset 78960bca3fe7c03f
parent 7895 a9d1c47bb1aa
child 7897 622d75108e60
Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Wed Oct 30 16:39:35 2013 -0400
     1.2 +++ b/src/video/SDL_egl.c	Thu Oct 31 10:02:21 2013 -0300
     1.3 @@ -394,7 +394,7 @@
     1.4          return;
     1.5      }
     1.6      
     1.7 -    if (!egl_context && egl_context != EGL_NO_CONTEXT) {
     1.8 +    if (egl_context != NULL && egl_context != EGL_NO_CONTEXT) {
     1.9          SDL_EGL_MakeCurrent(_this, NULL, NULL);
    1.10          _this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context);
    1.11      }