Commit 02bf8693 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fix_gl_core_compat_detection' into 'master'

Fixed detection of core and compat GL profile in Profile.cc

See merge request !73
parents 8d6cbb0e 7e4edb5f
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
bool ACG::Profile::isCoreProfile() bool ACG::Profile::isCoreProfile()
{ {
return QGLContext::currentContext()->format().profile() != QGLFormat::CoreProfile; return QGLContext::currentContext()->format().profile() == QGLFormat::CoreProfile;
} }
bool ACG::Profile::isCompatibilityProfile() bool ACG::Profile::isCompatibilityProfile()
{ {
return QGLContext::currentContext()->format().profile() != QGLFormat::CompatibilityProfile; return QGLContext::currentContext()->format().profile() == QGLFormat::CompatibilityProfile;
} }
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