From 3c03c0beebaa9fbab53087e5d5e1e6cb9df568da Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 14 Jun 2018 06:12:12 +0000 Subject: [PATCH] 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 file changed, 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index db9d32c2f..96f02cd1c 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -825,7 +825,6 @@ SDL_EGL_DeleteContext(_THIS, SDL_GLContext 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); }