mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Don't destroy glx if it's not initialized
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
b947a45d71
commit
5e8d6bdc2d
1 changed files with 3 additions and 1 deletions
|
@ -1221,7 +1221,9 @@ void deinit_render(session_t *ps) {
|
|||
|
||||
#ifdef CONFIG_OPENGL
|
||||
free(ps->root_tile_paint.fbcfg);
|
||||
glx_destroy(ps);
|
||||
if (bkend_use_glx(ps)) {
|
||||
glx_destroy(ps);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue