summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorGuilherme Quentel Melo <gqmelo@gmail.com>2016-05-10 00:29:58 +0000
committerAdam Jackson <ajax@redhat.com>2016-06-20 13:25:41 -0400
commita134d1e7eada0ac90fb622f45833c87b72c9aa06 (patch)
tree7dc7ee536fabadb82fb5a9aa81ab54886feb9a30 /miext
parent266cf39a8f108e2f365a9772f4ee4d9fca88eb36 (diff)
glx: avoid memory leak when using indirect rendering
When multiple processes are using GL with indirect rendering a race condition can make drawables refcount never drop to zero. This situation could happen when there are many X clients using indirect GLX: 1 - client1: calls glXMakeCurrent 2 - client2: calls glXMakeCurrent This is the first context switch for this client. So old_context_tag=0 3 - client1: calls glXRender For the client, its context is already current. For the server side lastGLContext points to client2's context. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Guilherme Quentel Melo <gqmelo@gmail.com>
Diffstat (limited to 'miext')
0 files changed, 0 insertions, 0 deletions