diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-15 17:11:05 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-15 17:14:31 (GMT) |
commit | 9f3ae04fae52cd37855b135a0f2f519d1c5b969c (patch) | |
tree | f7c75e9f8a1c3ab16e75d4f6018e2ac8db49f448 /tests/auto/qgl | |
parent | 0bde9d70b1a327b973a3e65efb138ff508ec4986 (diff) | |
download | Qt-9f3ae04fae52cd37855b135a0f2f519d1c5b969c.zip Qt-9f3ae04fae52cd37855b135a0f2f519d1c5b969c.tar.gz Qt-9f3ae04fae52cd37855b135a0f2f519d1c5b969c.tar.bz2 |
Fix EGL surface leaks when re-parenting QGLWidget on X11/EGL
When a QGLWidget is re-parented, it's native X11 window usually
gets destroyed and re-created. This also happens when you set a
window attribute or flag. On EGL, we must destroy the surface
for the window before destroying the window itself, otherwise
we can leak the surface. This also fixes lots of BadDrawable
errors when running the autotests (which were due to surface
leaks!).
Reviewed-By: TrustMe
Diffstat (limited to 'tests/auto/qgl')
0 files changed, 0 insertions, 0 deletions