summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/sct/sct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/sct/sct.c')
-rw-r--r--src/gallium/auxiliary/sct/sct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/sct/sct.c b/src/gallium/auxiliary/sct/sct.c
index 49bb7ea92e2..fcfa04ef7d5 100644
--- a/src/gallium/auxiliary/sct/sct.c
+++ b/src/gallium/auxiliary/sct/sct.c
@@ -372,7 +372,7 @@ sct_flush_textures(struct surface_context_tracker *sct,
for (tl = ci->textures_used; tl; tl = next) {
next = tl->next;
- pipe_texture_release(&tl->texture);
+ pipe_texture_reference(&tl->texture, NULL);
FREE(tl);
}
ci->textures_used = NULL;