From 8d059ae2da8f0e3fad63b114cb2ebd6abdd0d4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 22 Nov 2014 14:19:05 +0100 Subject: [PATCH] Require OpenGL 2.0 in the SceneOpenGL2 constructor BUG: 340254 FIXED-IN: 5.1.2 --- scene_opengl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index bacc980ca9..1048377ecb 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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);