diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-03-22 15:44:20 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-04-27 10:17:45 +0000 |
commit | 51472970ce519fb39f492238b879d67ad9505f28 (patch) | |
tree | dc58b8865c5992a160481650952db3ff753f68e4 /tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp | |
parent | f8a16e0edb11d3acc7f2448a4bcd0eb9606b39dc (diff) |
Compositor API: Don't leak OpenGL textures when running multi-threaded
If a client destroyed buffers, they would not get deleted because the event
would be handled on the GUI thread without a valid OpenGL context. I.e: you
would see the following output:
QOpenGLTexturePrivate::destroy() called without a current context.
Texture has not been destroyed
Work around it by keeping a list of buffers that have been orphaned and delete
them whenever we have a valid OpenGL context.
Change-Id: I31c7c4cff179bd68cd954714b2a8e3e2a74675b2
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp')
0 files changed, 0 insertions, 0 deletions