Mesa (gallium-mesa-7.4): st: release the surface
Alan Hourihane
alanh at kemper.freedesktop.org
Tue May 12 12:04:16 UTC 2009
Module: Mesa
Branch: gallium-mesa-7.4
Commit: 762aba750c664c124310e9939db20effab3e91de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=762aba750c664c124310e9939db20effab3e91de
Author: Alan Hourihane <alanh at vmware.com>
Date: Tue May 12 13:05:20 2009 +0100
st: release the surface
---
src/mesa/state_tracker/st_cb_accum.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_accum.c b/src/mesa/state_tracker/st_cb_accum.c
index 1ddc628..a80a11e 100644
--- a/src/mesa/state_tracker/st_cb_accum.c
+++ b/src/mesa/state_tracker/st_cb_accum.c
@@ -160,7 +160,6 @@ accum_mad(GLcontext *ctx, GLfloat scale, GLfloat bias,
struct st_renderbuffer *acc_strb)
{
struct pipe_screen *screen = ctx->st->pipe->screen;
-// struct pipe_surface *acc_ps = acc_strb->surface;
struct pipe_surface *acc_ps = screen->get_tex_surface(screen, acc_strb->texture, 0, 0, 0,
(PIPE_BUFFER_USAGE_CPU_WRITE |
PIPE_BUFFER_USAGE_CPU_READ));
@@ -188,6 +187,8 @@ accum_mad(GLcontext *ctx, GLfloat scale, GLfloat bias,
}
screen->surface_unmap(screen, acc_ps);
+
+ pipe_surface_reference(&acc_ps, NULL);
}
More information about the mesa-commit
mailing list