Commit 5c0d7c3a authored by TheNumbat's avatar TheNumbat
Browse files

fix gl version check

parent f3ae2b91
...@@ -36,10 +36,11 @@ static bool is_gl45 = false; ...@@ -36,10 +36,11 @@ static bool is_gl45 = false;
static bool is_gl41 = false; static bool is_gl41 = false;
void setup() { void setup() {
std::string ver = version(); GLint major, minor;
is_gl45 = ver.find("4.5") != std::string::npos; glGetIntegerv(GL_MAJOR_VERSION, &major);
is_gl41 = ver.find("4.1") != std::string::npos; glGetIntegerv(GL_MINOR_VERSION, &minor);
is_gl45 = major == 4 && minor == 5;
is_gl41 = major == 4 && minor == 1;
setup_debug_proc(); setup_debug_proc();
Effects::init(); Effects::init();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment