Skip to content

Commit

Permalink
egl: Don't change context when deleting current.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tomeuv committed Jun 14, 2018
1 parent 5308a24 commit fe68282
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/video/SDL_egl.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit fe68282

Please sign in to comment.