summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-17 05:11:07 +0200
committerMarek Olšák <[email protected]>2010-06-17 05:11:07 +0200
commit6771622e22399e8ed2346b830aefadf885fcec10 (patch)
tree396eb420129126b1f6561984f483f00ddbe48c5c /src/gallium/drivers/r300
parent1e6d51e805baa11eff17ea784c92ffc7933c56c5 (diff)
r300g: fix surface leaks
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 9b081870ff8..655819001c9 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -1048,6 +1048,9 @@ static void r300_resource_resolve(struct pipe_context* pipe,
srcsurf, color, 0, 0, src->width0, src->height0);
OUT_CS_REG(R300_RB3D_AARESOLVE_CTL, 0x0);
+
+ pipe_surface_reference((struct pipe_surface**)&srcsurf, NULL);
+ pipe_surface_reference((struct pipe_surface**)&destsurf, NULL);
}
void r300_init_render_functions(struct r300_context *r300)