From d336ef410afddfdfb665dae7001c2995e2d2a70d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 29 Aug 2009 20:33:28 +0100 Subject: [PATCH] xlib: Implement lp_winsys::destroy. --- src/gallium/winsys/xlib/xlib_llvmpipe.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/winsys/xlib/xlib_llvmpipe.c b/src/gallium/winsys/xlib/xlib_llvmpipe.c index 55b59a1c14c..bc876591c0d 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; -- 2.30.2