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
@ -1221,7 +1221,9 @@ void deinit_render(session_t *ps) {
|
|||||||
|
|
||||||
#ifdef CONFIG_OPENGL
|
#ifdef CONFIG_OPENGL
|
||||||
free(ps->root_tile_paint.fbcfg);
|
free(ps->root_tile_paint.fbcfg);
|
||||||
glx_destroy(ps);
|
if (bkend_use_glx(ps)) {
|
||||||
|
glx_destroy(ps);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user