From 8a53efec6258a4a26fcb7cf6969f7016c171fc7f Mon Sep 17 00:00:00 2001 From: gameblabla Date: Mon, 20 Aug 2018 13:17:01 +0200 Subject: [PATCH] Fixes compiling with GLES and X11 --- core/linux-dist/x11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/linux-dist/x11.cpp b/core/linux-dist/x11.cpp index 264558ac2..c13f5d68b 100644 --- a/core/linux-dist/x11.cpp +++ b/core/linux-dist/x11.cpp @@ -381,12 +381,14 @@ void x11_window_destroy() } if (x11_disp) { +#if !defined(GLES) if (x11_glc) { glXMakeCurrent((Display*)x11_disp, None, NULL); glXDestroyContext((Display*)x11_disp, (GLXContext)x11_glc); x11_glc = NULL; } +#endif XCloseDisplay((Display*)x11_disp); x11_disp = NULL; }