Require OpenGL 2.0 in the SceneOpenGL2 constructor
BUG: 340254 FIXED-IN: 5.1.2
This commit is contained in:
parent
e0b2299e84
commit
8d059ae2da
1 changed files with 8 additions and 0 deletions
|
@ -860,6 +860,14 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend)
|
||||||
// base ctor already failed
|
// base ctor already failed
|
||||||
return;
|
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
|
// Initialize color correction before the shaders
|
||||||
slotColorCorrectedChanged(false);
|
slotColorCorrectedChanged(false);
|
||||||
connect(options, SIGNAL(colorCorrectedChanged()), this, SLOT(slotColorCorrectedChanged()), Qt::QueuedConnection);
|
connect(options, SIGNAL(colorCorrectedChanged()), this, SLOT(slotColorCorrectedChanged()), Qt::QueuedConnection);
|
||||||
|
|
Loading…
Reference in a new issue