summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-icc
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-01 03:02:49 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-01 03:17:04 (GMT)
commit69e8fd3359a72230d377513b0314e64b5b83b712 (patch)
treee5318295a62d12254d16deaeb6b42b718bad9d93 /mkspecs/win32-icc
parente8fc662c4b5a0fa5da6f0d47e1dbb5b2640d7001 (diff)
downloadQt-69e8fd3359a72230d377513b0314e64b5b83b712.zip
Qt-69e8fd3359a72230d377513b0314e64b5b83b712.tar.gz
Qt-69e8fd3359a72230d377513b0314e64b5b83b712.tar.bz2
Make QGLFramebufferObject crash-proof if QGLContext destroyed first
Sometimes it isn't possible to arrange for the QGLFramebufferObject to be destroyed before the QGLContext group in which it was created. Especially during application shutdown or in applications with multiple shared contexts. This change modifies QGLFramebufferObject to use QGLSharedResourceGuard, which ensures that when the last QGLContext in a sharing group is destroyed, any remaining FBO's will revert to !isValid(). It is now safe to destroy the context before the FBO, or the FBO before the context. Unit test included. Reviewed-by: Sarah Smith
Diffstat (limited to 'mkspecs/win32-icc')
0 files changed, 0 insertions, 0 deletions