Require OpenGL 2.0 in the SceneOpenGL2 constructor

BUG: 340254
FIXED-IN: 5.1.2
This commit is contained in:
Fredrik Höglund 2014-11-22 14:19:05 +01:00
parent e0b2299e84
commit 8d059ae2da

View file

@ -860,6 +860,14 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend)
// base ctor already failed
return;
}
// We only support the OpenGL 2+ shader API, not GL_ARB_shader_objects
if (!hasGLVersion(2, 0)) {
qDebug() << "OpenGL 2.0 is not supported";
init_ok = false;
return;
}
// Initialize color correction before the shaders
slotColorCorrectedChanged(false);
connect(options, SIGNAL(colorCorrectedChanged()), this, SLOT(slotColorCorrectedChanged()), Qt::QueuedConnection);