Mesa (master): xlib: Implement lp_winsys::destroy.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sun Aug 30 11:37:59 UTC 2009
Module: Mesa
Branch: master
Commit: d336ef410afddfdfb665dae7001c2995e2d2a70d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d336ef410afddfdfb665dae7001c2995e2d2a70d
Author: José Fonseca <jfonseca at vmware.com>
Date: Sat Aug 29 20:33:28 2009 +0100
xlib: Implement lp_winsys::destroy.
---
src/gallium/winsys/xlib/xlib_llvmpipe.c | 9 +++++++++
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 55b59a1..bc87659 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;
More information about the mesa-commit
mailing list