diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index 5117e2f..9303a98 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -198,6 +198,7 @@ void glx_deinit(backend_t *base) { // Destroy GLX context if (gd->ctx) { + glXMakeCurrent(gd->display, None, NULL); glXDestroyContext(gd->display, gd->ctx); gd->ctx = 0; }