summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2014-06-18 13:03:15 +0200
committerMartin Gräßlin <mgraesslin@kde.org>2014-06-20 11:25:40 +0200
commit473ed1c1aa67ceb345b20d13c408ed8bd65a9e41 (patch)
tree8257298f62029b1480fefa006a79cde4b5427e85 /qmake/project.cpp
parent075c36e39beedb33ec4b239d57075f54acb21acf (diff)
Properly check which OpenGL features are supported
QOpenGLShaderProgram::hasOpenGLShaderPrograms tests whether QOpenGLFunctions::Shaders is provided for the given context. As the initialization code assumed OpenGL 2 this always was true. But unfortunately we still cannot assume that OpenGL 2 is universally supported. E.g. indirect rendering (no matter how bad that idea is) does not support OpenGL 2 on all hardware and the Shader related extensions are not available. This change makes sure that only when OpenGL 2 is available the features provided by OpenGL 2 are enabled. If OpenGL 2 is not available the extensions are tested. The checks are slightly reordered to not do the extension tests at all if OpenGL 2 is available. Task-number: QTBUG-39730 Change-Id: Ic775163e0dcc519925b1287f3c4ca5e8ebf101d5 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'qmake/project.cpp')
0 files changed, 0 insertions, 0 deletions