summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-03-23 19:10:52 +0100
committerGitHub <noreply@github.com>2020-03-23 19:10:52 +0100
commit6fab09951bdd68cd24769a3347cd460d656baf95 (patch)
treea812484d90202941d5b9602722569864475bb8eb /Source/Core/Common/GL
parent623a50786d01a6d7fed2c0290fed660a28fa02b4 (diff)
parent500820b3520bc13ab639911293b7e2bd9b8d6518 (diff)
Merge pull request #8692 from howard0su/warning_unused
Cleanup warnings of -Wunused-[const]-variable
Diffstat (limited to 'Source/Core/Common/GL')
-rw-r--r--Source/Core/Common/GL/GLContext.cpp2
1 files changed, 1 insertions, 1 deletions
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> 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<GLContextEGLX11>();
else