src/video/SDL_egl.c
changeset 7896 0bca3fe7c03f
parent 7865 f2a42ca4ddf0
child 7986 ffb7bf531644
     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      }