1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Destroy glx context created for vsync

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-06-06 07:33:07 +01:00
parent 5e8d6bdc2d
commit a18e8fcdf0
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

@ -2049,6 +2049,11 @@ static void session_destroy(session_t *ps) {
deinit_render(ps);
}
if (glx_has_context(ps)) {
// GLX context created, but not for rendering
glx_destroy(ps);
}
// Flush all events
x_sync(ps->c);
ev_io_stop(ps->loop, &ps->xiow);