From 350d0e5ec27ea2a468292fe2ff74a5a28d07c022 Mon Sep 17 00:00:00 2001 From: Kitessencial <34247284+Kitessencial@users.noreply.github.com> Date: Thu, 21 Dec 2017 15:05:27 -0200 Subject: [PATCH] Detect OpenGL 4.60 (#816) * Detect OpenGL 4.60 This change allows Xenia to detect if the system has OpenGL 4.6 --- src/xenia/ui/gl/gl_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/ui/gl/gl_context.cc b/src/xenia/ui/gl/gl_context.cc index a1c94ef9e..770532992 100644 --- a/src/xenia/ui/gl/gl_context.cc +++ b/src/xenia/ui/gl/gl_context.cc @@ -64,8 +64,8 @@ void GLContext::AssertExtensionsPresent() { auto glsl_version_raw = reinterpret_cast(glGetString(GL_SHADING_LANGUAGE_VERSION)); std::string glsl_version(glsl_version_raw); - if (glsl_version.find("4.50") != 0) { - FatalGLError("OpenGL GLSL version 4.50 is required."); + if (glsl_version.find("4.5") == std::string::npos && glsl_version.find("4.6") == std::string::npos) { + FatalGLError("OpenGL GLSL version 4.50 or higher is required."); return; }