summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/postprocess')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_mlaa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.c b/src/gallium/auxiliary/postprocess/pp_mlaa.c
index 502fcf169a6..0edd01f3f5d 100644
--- a/src/gallium/auxiliary/postprocess/pp_mlaa.c
+++ b/src/gallium/auxiliary/postprocess/pp_mlaa.c
@@ -353,13 +353,11 @@ void
pp_jimenezmlaa_free(struct pp_queue_t *ppq, unsigned int n)
{
if (ppq->areamaptex) {
- ppq->p->screen->resource_destroy(ppq->p->screen, ppq->areamaptex);
- ppq->areamaptex = NULL;
+ pipe_resource_reference(&ppq->areamaptex, NULL);
}
if (ppq->constbuf) {
- ppq->p->screen->resource_destroy(ppq->p->screen, ppq->constbuf);
- ppq->constbuf = NULL;
+ pipe_resource_reference(&ppq->constbuf, NULL);
}
}