diff options
author | Axel Davy <[email protected]> | 2015-01-19 16:20:35 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:19 +0100 |
commit | 49214a3dfc4f5173e22846d92c5dd0c2b24e3638 (patch) | |
tree | 64b9cfd2761a984998f51ac0b764c76830a12df8 /src | |
parent | d538007734bb37a7f2aa865abaa225aa13799484 (diff) |
st/nine: Fix gpu memory leak in swapchain
Reviewed-by: Tiziano Bacocco <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/swapchain9.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index af6fe6e63fa..03ed24ee6c8 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 | |