mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Fix non-OpenGL build
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
a18e8fcdf0
commit
cbb859ba3c
1 changed files with 2 additions and 0 deletions
|
@ -2049,10 +2049,12 @@ static void session_destroy(session_t *ps) {
|
||||||
deinit_render(ps);
|
deinit_render(ps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_OPENGL
|
||||||
if (glx_has_context(ps)) {
|
if (glx_has_context(ps)) {
|
||||||
// GLX context created, but not for rendering
|
// GLX context created, but not for rendering
|
||||||
glx_destroy(ps);
|
glx_destroy(ps);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flush all events
|
// Flush all events
|
||||||
x_sync(ps->c);
|
x_sync(ps->c);
|
||||||
|
|
Loading…
Reference in a new issue