summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i965/brw_screen_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_surface.c b/src/gallium/drivers/i965/brw_screen_surface.c
index 21a7382873f..1e37c63d6c9 100644
--- a/src/gallium/drivers/i965/brw_screen_surface.c
+++ b/src/gallium/drivers/i965/brw_screen_surface.c
@@ -245,6 +245,7 @@ static void brw_tex_surface_destroy( struct pipe_surface *surf )
/* Unreference texture, shared buffer:
*/
+ remove_from_list(surface);
bo_reference(&surface->bo, NULL);
pipe_texture_reference( &surface->base.texture, NULL );