vl: fix a douple free in xsp winsys backend
authorChristian König <deathsimple@vodafone.de>
Mon, 27 Feb 2012 11:57:24 +0000 (12:57 +0100)
committerChristian König <deathsimple@vodafone.de>
Mon, 27 Feb 2012 11:57:24 +0000 (12:57 +0100)
There are a couple of more bugs, but it is only
useful for debugging anyway.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c

index 2ff5ef195800c20a3475d8b797a2a1c454240ebe..6cd16bf46478661a7d318ad83faa7084caec0d93 100644 (file)
@@ -87,7 +87,7 @@ vl_screen_texture_from_drawable(struct vl_screen *vscreen, Drawable drawable)
    xsp_screen->xdraw.depth = 24/*util_format_get_blocksizebits(templat.format) /
                              util_format_get_blockwidth(templat.format)*/;
 
-   xsp_screen->tex = vscreen->pscreen->resource_create(vscreen->pscreen, &templat);
+   pipe_resource_reference(&xsp_screen->tex, vscreen->pscreen->resource_create(vscreen->pscreen, &templat));
    return xsp_screen->tex;
 }