summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengldebug.h
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2015-02-06 12:39:05 +0100
committerGiuseppe D'Angelo <[email protected]>2015-02-07 20:29:30 +0000
commit4d19c3a35461a2cfe3caa076e262188cc8d5128b (patch)
tree1d8db184b5c1c7c81260db96a1971ada134aa1fd /src/gui/opengl/qopengldebug.h
parentb8aeb4a256a6906f82255b7a60268870cca7dd00 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopengldebug.h')
0 files changed, 0 insertions, 0 deletions