Detect OpenGL 4.60 (#816)

* Detect OpenGL 4.60

This change allows Xenia to detect if the system has OpenGL 4.6
This commit is contained in:
Kitessencial 2017-12-21 15:05:27 -02:00 committed by Justin Moore
parent 531b418b72
commit 350d0e5ec2
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}