[Mesa-dev] [PATCH 33/43] st/nine: Fix gpu memory leak in swapchain
Axel Davy
axel.davy at ens.fr
Fri Jan 30 12:34:32 PST 2015
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c
index a6e9c57..9db6ff4 100644
--- a/src/gallium/state_trackers/nine/swapchain9.c
+++ b/src/gallium/state_trackers/nine/swapchain9.c
@@ -338,8 +338,7 @@ NineSwapChain9_Resize( struct NineSwapChain9 *This,
pipe_resource_reference(&(This->present_buffers[i]), resource);
}
This->present_handles[i] = D3DWindowBuffer_create(This, resource, depth);
- if (!has_present_buffers)
- pipe_resource_reference(&resource, NULL);
+ pipe_resource_reference(&resource, NULL);
}
if (pParams->EnableAutoDepthStencil) {
tmplt.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_TRANSFER_READ |
--
2.1.0
More information about the mesa-dev
mailing list