Commit 7e4edb5f authored by Kersten Schuster's avatar Kersten Schuster
Browse files

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

parent 8d6cbb0e
...@@ -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