From 85c5d34ce15b8c29e8e3bd979939c4c074d6a61b Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 15 Dec 2018 20:09:49 +0000 Subject: [PATCH] Add missing CONFIG_OPENGL check Signed-off-by: Yuxuan Shui --- src/compton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compton.c b/src/compton.c index 8a3a54a..b9236ec 100644 --- a/src/compton.c +++ b/src/compton.c @@ -4534,6 +4534,7 @@ vsync_opengl_oml_init(session_t *ps) { static bool vsync_opengl_swc_swap_interval(session_t *ps, unsigned int interval) { +#ifdef CONFIG_OPENGL if (!ensure_glx_context(ps)) return false; @@ -4556,6 +4557,7 @@ vsync_opengl_swc_swap_interval(session_t *ps, unsigned int interval) { ps->psglx->glXSwapIntervalProc(interval); else return false; +#endif return true; }