diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2020-12-14 19:57:25 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2020-12-14 19:57:25 +0100 |
commit | 3850e110d0a4537c7c6cc3787258635935d8e021 (patch) | |
tree | 94e280d02aa4fa39a520934d48629096505b1c3b /src | |
parent | 11c59d3dba57646c9263146a340992438b171940 (diff) | |
download | xfwm4-3850e110d0a4537c7c6cc3787258635935d8e021.tar.gz |
compositor: Release current GLX context on teardown
Prior to freeing the GLX context, make sure it's released.
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c index 765b2fddc..55da7d2a5 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1352,6 +1352,8 @@ free_glx_data (ScreenInfo *screen_info) display_info = screen_info->display_info; myDisplayErrorTrapPush (display_info); + glXMakeCurrent (myScreenGetXDisplay (screen_info), None, NULL); + if (screen_info->glx_context) { glXDestroyContext (myScreenGetXDisplay (screen_info), screen_info->glx_context); |