diff options
author | Marek Olšák <[email protected]> | 2014-09-22 22:12:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-09-24 14:48:02 +0200 |
commit | 2f7714e0717250c6737accc6c8259c6d9107fd6e (patch) | |
tree | 169aa7db2699ba707d22a1caaca3856722c61c7c /src/gallium/drivers | |
parent | 91ddf49c874829aa5f9d561d1e321651992ca127 (diff) |
gallium/rbug: correctly unreference a sampler view
This fixes heap corruption. The sampler view can be bound in the context,
so we cannot call destroy directly.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_objects.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/rbug/rbug_objects.c b/src/gallium/drivers/rbug/rbug_objects.c index db18f2e1c22..320f34d2565 100644 --- a/src/gallium/drivers/rbug/rbug_objects.c +++ b/src/gallium/drivers/rbug/rbug_objects.c @@ -153,8 +153,7 @@ rbug_sampler_view_destroy(struct rbug_context *rb_context, struct rbug_sampler_view *rb_view) { pipe_resource_reference(&rb_view->base.texture, NULL); - rb_context->pipe->sampler_view_destroy(rb_context->pipe, - rb_view->sampler_view); + pipe_sampler_view_reference(&rb_view->sampler_view, NULL); FREE(rb_view); } |