mirror of https://github.com/yshui/picom.git
opengl: fix segfault in ensure_glx_context
This commit is contained in:
parent
60ac2b64db
commit
74ab307626
|
@ -159,7 +159,7 @@ static inline bool ensure_glx_context(session_t *ps) {
|
|||
if (!glx_has_context(ps))
|
||||
glx_init(ps, false);
|
||||
|
||||
return ps->psglx->context;
|
||||
return glx_has_context(ps);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue