aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-15 15:04:51 +0100
committerMarek Olšák <[email protected]>2017-02-18 01:22:08 +0100
commit02cd8b20d10e4fdc635897056f1bdfb9049d864d (patch)
treeb05fd9d6875a232e5dafb50ee3e0ec8c96d7b704 /src/gallium/auxiliary/util
parent42297c862f60ccecf794297ee97410f007bd75df (diff)
gallium/util: correctly unref a buffer in u_prim_restart
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_prim_restart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_prim_restart.c b/src/gallium/auxiliary/util/u_prim_restart.c
index a4d7c1433d9..e45aa562a4f 100644
--- a/src/gallium/auxiliary/util/u_prim_restart.c
+++ b/src/gallium/auxiliary/util/u_prim_restart.c
@@ -117,7 +117,7 @@ error:
if (dst_transfer)
pipe_buffer_unmap(context, dst_transfer);
if (*dst_buffer)
- screen->resource_destroy(screen, *dst_buffer);
+ pipe_resource_reference(dst_buffer, NULL);
return PIPE_ERROR_OUT_OF_MEMORY;
}