From cbb859ba3cd639cd898c02010297822b961fcc7c Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 6 Jun 2019 07:40:32 +0100 Subject: [PATCH] Fix non-OpenGL build 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 3d2cbeb..a07266b 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2049,10 +2049,12 @@ static void session_destroy(session_t *ps) { deinit_render(ps); } +#if CONFIG_OPENGL if (glx_has_context(ps)) { // GLX context created, but not for rendering glx_destroy(ps); } +#endif // Flush all events x_sync(ps->c);