projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d538007
)
st/nine: Fix gpu memory leak in swapchain
author
Axel Davy
<axel.davy@ens.fr>
Mon, 19 Jan 2015 15:20:35 +0000
(16:20 +0100)
committer
Axel Davy
<axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000
(
00:07
+0100)
Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/swapchain9.c
b/src/gallium/state_trackers/nine/swapchain9.c
index af6fe6e63faf6200921a8d97beee1de693113d9f..03ed24ee6c8fda52053e08fc444e4ea3ae7cb5b2 100644
(file)
--- 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 |