Commit 1f506bfb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Only set the core profile on OSX

We'll move the other platforms (win and linux) to core profile
once the patch has landed in Qt itself.
parent 9566bb02
......@@ -175,8 +175,13 @@ bool KisOpenGL::needsPixmapCacheWorkaround()
void KisOpenGL::setDefaultFormat()
{
QSurfaceFormat format;
format.setProfile(QSurfaceFormat::CoreProfile);
format.setVersion(3, 2);
#ifdef Q_OS_MAC
format.setProfile(QSurfaceFormat::CoreProfile);
#else
format.setProfile(QSurfaceFormat::CompatibilityProfile);
format.setOptions(QSurfaceFormat::DeprecatedFunctions);
#endif
format.setDepthBufferSize(24);
format.setStencilBufferSize(8);
format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
......
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