From d3c467f4c0d139280894ba70e83e264bddf7220a Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Wed, 11 Jan 2023 05:23:02 +0300 Subject: [PATCH] opengl: fix segfault in ensure_glx_context --- src/opengl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opengl.h b/src/opengl.h index dcd8697..d0d37dd 100644 --- a/src/opengl.h +++ b/src/opengl.h @@ -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); } /**