projects
/
platform
/
upstream
/
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
af6fe6e
..
03ed24e
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 |