qt5base-lts/src/gui
Jocelyn Turcotte ab79e832e6 Do not parent the shader program to the QOpenGLContext
When the last QOpenGLContext in a share group is destroyed, all the
remaining alive QOpenGL* objects have their resource invalidated.

This happens under QOpenGLContext::destroy, but before any QObject
children of the QOpenGLContext is destroyed by the QObject destructor.
This is currently an issue with ANGLE that could be fixed in its own
code, but that is still better for us to be covered against.

This means that the OpenGL resource is assumed to be destroyed with
the context by the driver, but this isn't always the same.

Fix an instance of this in QOpenGLTextureGlyphCache by explicitly
owning the blit QOpenGLShaderProgram instead of parenting it under
the current GL context. The very same resource invalidation system
will prevent anything bad to happen if the QOpenGLContext is
destroyed before the QOpenGLTextureGlyphCache.

Task-number: QTBUG-41588
Change-Id: Ic3bc69b07bcbdcf7d699ea9139b2e34b04e642e5
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
2014-10-23 18:13:12 +02:00
..
accessible Make QAccessible compile with -Werror 2014-09-30 10:33:07 +02:00
animation Update license headers and add new license files 2014-09-24 12:26:19 +02:00
doc Doc: Use title case in section1 titles 2014-09-30 13:52:51 +02:00
image Doc: Improved explanation of quality setting in QImageReader/Writer 2014-10-22 08:39:23 +02:00
itemmodels Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel QPA: Flush window system events with flags. 2014-10-22 05:53:15 +02:00
math3d Update license headers and add new license files 2014-09-24 12:26:19 +02:00
opengl Do not parent the shader program to the QOpenGLContext 2014-10-23 18:13:12 +02:00
painting Correctly apply miter limits when stroking lines 2014-10-21 08:42:23 +02:00
text Fix uninitialized value warning in QFontEngineFT. 2014-10-23 07:09:33 +02:00
util Adjust the layout if a QGraphicsWidget is explicitly hidden 2014-10-23 07:17:50 +02:00
gui.pro deprecate import_qpa_plugin and qpa_minimal_plugin 2014-04-24 10:45:55 +02:00
Qt5GuiConfigExtras.cmake.in CMake: Don't check the existence of GL files in the Qt5Gui package. 2014-07-16 11:43:45 +02:00
QtGui.dynlist Add dynlist file for QtGui 2013-03-18 17:11:04 +01:00