summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKitessencial <34247284+Kitessencial@users.noreply.github.com>2017-12-21 15:05:27 -0200
committerJustin Moore <DrChat@users.noreply.github.com>2017-12-21 11:05:27 -0600
commit350d0e5ec27ea2a468292fe2ff74a5a28d07c022 (patch)
tree1a6fe3378de09a1a861ec52836f60ad5370d2ddc /src
parent531b418b72811ed0892ec49031d226a41156279f (diff)
Detect OpenGL 4.60 (#816)
* Detect OpenGL 4.60 This change allows Xenia to detect if the system has OpenGL 4.6
Diffstat (limited to 'src')
-rw-r--r--src/xenia/ui/gl/gl_context.cc4
1 files 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<const char*>(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;
}