egl: Don't change context when deleting current.
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 14 Jun 2018 06:12:12 +0000
changeset 120288aa5a79c8805
parent 12027 83df3afcf475
child 12029 dfebed374d73
egl: Don't change context when deleting current.

If we change the current context behind the app's back, those tracking
the current context to minimize context changes are going to get
confused.

This brings the EGL backend in line with the GLX one.

Fixes Bugzilla #4199.
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Sun Jun 24 12:16:58 2018 -0400
     1.2 +++ b/src/video/SDL_egl.c	Thu Jun 14 06:12:12 2018 +0000
     1.3 @@ -825,7 +825,6 @@
     1.4      }
     1.5      
     1.6      if (egl_context != NULL && egl_context != EGL_NO_CONTEXT) {
     1.7 -        SDL_EGL_MakeCurrent(_this, NULL, NULL);
     1.8          _this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context);
     1.9      }
    1.10