summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-29 20:33:28 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-30 12:37:03 +0100
commitd336ef410afddfdfb665dae7001c2995e2d2a70d (patch)
treea059fb12c01c6df5e91308d8a738b0fb1ffe9be5 /src
parent9053bb0d405db0b1a2a917317c7ec41e63b54f09 (diff)
xlib: Implement lp_winsys::destroy.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/xlib/xlib_llvmpipe.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xlib_llvmpipe.c b/src/gallium/winsys/xlib/xlib_llvmpipe.c
index 55b59a1c14..bc876591c0 100644
--- a/src/gallium/winsys/xlib/xlib_llvmpipe.c
+++ b/src/gallium/winsys/xlib/xlib_llvmpipe.c
@@ -364,6 +364,13 @@ no_xm_dt:
}
+static void
+xm_destroy( struct llvmpipe_winsys *ws )
+{
+ FREE(ws);
+}
+
+
static struct llvmpipe_winsys *
xlib_create_llvmpipe_winsys( void )
{
@@ -373,6 +380,8 @@ xlib_create_llvmpipe_winsys( void )
if (!ws)
return NULL;
+ ws->base.destroy = xm_destroy;
+
ws->base.is_displaytarget_format_supported = xm_is_displaytarget_format_supported;
ws->base.displaytarget_create = xm_displaytarget_create;