qt5base-lts/src
Martin Gräßlin 473ed1c1aa 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>
2014-06-20 11:25:40 +02:00
..
3rdparty ANGLE WinRT: Create swap chain using physical resolution 2014-05-22 07:59:49 +02:00
android Android: Fix flashing on startup/shutdown 2014-06-04 09:29:43 +02:00
angle ANGLE WinRT: Create swap chain using physical resolution 2014-05-22 07:59:49 +02:00
concurrent Doc: Add docs for QtConcurrent::{Unhandled,Exception} 2014-03-17 20:52:42 +01:00
corelib Attempt to fix intel compiler build error. 2014-06-19 17:25:12 +02:00
dbus Fix data race in accessing QDBusConnectionPrivate::serviceNames 2014-06-15 23:04:28 +02:00
gui Properly check which OpenGL features are supported 2014-06-20 11:25:40 +02:00
network QProcess: Handle spurious socket notifications for stdout and stderr 2014-06-12 17:54:11 +02:00
opengl Merge remote-tracking branch 'origin/release' into stable 2014-05-03 00:56:41 +02:00
openglextensions purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00
platformsupport Fix visual selection with EGL on xcb 2014-06-06 02:51:32 +02:00
plugins Do not overwrite existing event mask of root window 2014-06-20 11:25:24 +02:00
printsupport QPrinter - Don't use QPrinterInfo::availablePrinters() 2014-06-07 19:06:26 +02:00
sql Doc: Added link to SQL example page from main Qt SQL landing page. 2014-06-06 16:52:24 +02:00
testlib Fix auto test failure output on QNX 2014-05-19 10:03:38 +02:00
tools qdoc: Revised logic for which example file to open in Qt Creator 2014-06-10 10:16:56 +02:00
widgets Remove the widget from the stylesheet cache before polishing 2014-06-20 07:10:21 +02:00
winmain remove HSTRING instances 2014-06-03 09:55:30 +02:00
xml Fix copy-paste error. 2014-04-18 14:26:26 +02:00
src.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00