Commit e71b73b2 authored by Halla Rempt's avatar Halla Rempt

Do not set CoreProfile

This is broken in Qt 4.x. See:

http://qt-project.org/forums/viewthread/4856

That's what we get for trying to be neat and tidy. This fixes
opengl on Windows with the latest nvidia drivers.
parent 7a8bf967
......@@ -87,6 +87,7 @@ void KisOpenGL::createContext()
QGLFormat format(QGL::SampleBuffers);
/* Profiles are broken in Qt 4.x: http://qt-project.org/forums/viewthread/4856
#if QT_VERSION >= 0x040700
format.setVersion(3, 0);
format.setProfile(QGLFormat::CoreProfile);
......@@ -97,7 +98,7 @@ void KisOpenGL::createContext()
if (format.profile() == 2)
qDebug() << "Using the compatibility profile";
#endif
*/
format.setDoubleBuffer(false);
SharedContextWidget = new QGLWidget(format);
......
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