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:
parent
531b418b72
commit
350d0e5ec2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue