Commit d7980db3 authored by Martin Schultz's avatar Martin Schultz

changed the isCompatibilityProfile function to also report Qt No profile as...

changed the isCompatibilityProfile function to also report Qt No profile as compatibility. (required for OSX)
parent 5d774d2b
......@@ -50,5 +50,6 @@ bool ACG::Profile::isCoreProfile()
bool ACG::Profile::isCompatibilityProfile()
{
return QGLContext::currentContext()->format().profile() == QGLFormat::CompatibilityProfile;
// We treat Qt NoProfile the same way as compatibility profile to support OSX
return QGLContext::currentContext()->format().profile() != QGLFormat::CoreProfile;
}
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