- update opengl version check since 2.1 is really the minimum supported

This commit is contained in:
SoftCoder 2017-09-22 17:17:49 -07:00
parent cf1984f7e4
commit de8d05b882
1 changed files with 3 additions and 4 deletions

View File

@ -8041,14 +8041,13 @@ void Renderer::checkGlCaps() {
throw megaglest_runtime_error(message.c_str(),true);
}
//opengl 1.3
//if(!isGlVersionSupported(1, 3, 0)) {
if(glewIsSupported("GL_VERSION_1_3") == false) {
//opengl 2.1
if(glewIsSupported("GL_VERSION_2_1") == false) {
string message;
message += "Your system supports OpenGL version [";
message += getGlVersion() + string("]\n");
message += "MegaGlest needs at least version 1.3 to work\n";
message += "MegaGlest needs at least version 2.1 to work\n";
message += "You may solve this problem by installing your latest video card drivers";
throw megaglest_runtime_error(message.c_str(),true);