From 7c7a41ecd8d1381dac569f1ec60fefaac0ad39a3 Mon Sep 17 00:00:00 2001 From: Jun Su Date: Mon, 23 Mar 2020 14:24:27 +0800 Subject: Cleanup warnings of -Wunused-variable remove unused variables. --- Source/Core/Common/GL/GLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/GL/GLContext.cpp') diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index 5d740f9211..d6969bcb55 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -95,9 +95,9 @@ std::unique_ptr GLContext::Create(const WindowSystemInfo& wsi, bool s #if HAVE_X11 if (wsi.type == WindowSystemType::X11) { +#if defined(HAVE_EGL) // GLES 3 is not supported via GLX. const bool use_egl = prefer_egl || prefer_gles; -#if defined(HAVE_EGL) if (use_egl) context = std::make_unique(); else -- cgit v1.2.3