Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Laszlo Agocs 4d19c3a354 Avoid the initializeOpenGLFunctions() call after versionFunctions()
Try making it compatible with QOpenGLContext::functions() which returns
an already initialized QOpenGLFunctions.

Unfortunately we cannot make them 100% compatible because functions()
conveniently requires that the context (or a sharing context) is current.
versionFunctions() has no such requirement and we cannot safely introduce
it anymore.

What we can do is to state that as long as the context is the current one,
the initializeOpenGLFunctions() call can be omitted. If another context (or
no context) is current, the call will still be needed, like it is today.

Also, we require that the exact same context is current. Sharing does not
count since the exact behavior of sharing contexts with different versions
is unknown.

[ChangeLog][QtGui] initializeOpenGLFunctions() no longer needs to be called when
querying a versioned function wrapper object via QOpenGLContext::versionFunctions().

Change-Id: I0b4d1ae1f780da3f5dec9fc8dc67255c13faab6e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2015-02-07 20:29:30 +00:00
bin Use the new warning enabling/disabling macros in qtbase 2014-12-03 18:09:17 +01:00
config.tests Add libproxy backend for QNetworkProxyFactory 2015-02-05 14:29:03 +00:00
dist Merge remote-tracking branch 'origin/5.4.0' into 5.4 2014-12-05 11:53:33 +01:00
doc Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
examples Remove traces of the Maemo platform 2015-02-04 17:14:35 +00:00
lib
mkspecs Remove unused function from rpi hooks 2015-02-05 19:20:39 +00:00
qmake Make .la file generation reproducible in qmake 2015-02-05 21:17:29 +00:00
src Avoid the initializeOpenGLFunctions() call after versionFunctions() 2015-02-07 20:29:30 +00:00
tests ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
tools configure.exe: disable ANGLE backend for Linux targets 2015-02-07 13:26:47 +00:00
util QUnicodeTables: mark all functions as nothrow 2015-01-10 08:42:55 +01:00
.gitattributes
.gitignore
.qmake.conf
.tag
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.LGPLv3
LICENSE.LGPLv21
LICENSE.PREVIEW.COMMERCIAL
configure Add libproxy backend for QNetworkProxyFactory 2015-02-05 14:29:03 +00:00
configure.bat remove some redundant backslashes 2015-02-04 16:33:40 +00:00
header.BSD
header.FDL
header.LGPL
header.LGPL-ONLY
header.LGPL3 Android: Don't include Apache code under LGPLv2 license 2014-10-02 05:59:17 +02:00
header.LGPL21
qtbase.pro remove nonsensical claim about contains() 2014-11-13 14:33:16 +01:00
sync.profile