diff options
author | Stéphane Marchesin <[email protected]> | 2011-06-15 15:09:12 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-06-17 11:20:19 -0700 |
commit | bf69ce37f0dcbb479078ee676d5100ac63e20750 (patch) | |
tree | cfb0bf5deb989d947503e2bbeddde5aa5080fb62 /src/glx/glxclient.h | |
parent | 8173471fc25f4c768cab54fa840fd4c53d1c3c0f (diff) |
glx: implement drawable refcounting.
The current dri context unbind logic will leak drawables until the process
dies (they will then get released by the GEM code). There are two ways to fix
this: either always call driReleaseDrawables every time we unbind a context
(but that costs us round trips to the X server at getbuffers() time) or
implement proper drawable refcounting. This patch implements the latter.
Signed-off-by: Antoine Labour <[email protected]>
Signed-off-by: Stéphane Marchesin <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r-- | src/glx/glxclient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index fa2e2d360ca..88a6edd097c 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -138,6 +138,7 @@ struct __GLXDRIdrawableRec GLenum textureTarget; GLenum textureFormat; /* EXT_texture_from_pixmap support */ unsigned long eventMask; + int refcount; }; /* |