diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-01 03:02:49 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-01 03:17:04 (GMT) |
commit | 69e8fd3359a72230d377513b0314e64b5b83b712 (patch) | |
tree | e5318295a62d12254d16deaeb6b42b718bad9d93 /examples/script/helloscript | |
parent | e8fc662c4b5a0fa5da6f0d47e1dbb5b2640d7001 (diff) | |
download | Qt-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 'examples/script/helloscript')
0 files changed, 0 insertions, 0 deletions