mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
st/nine: Fix gpu memory leak in swapchain
Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com> Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
d538007734
commit
49214a3dfc
1 changed files with 1 additions and 2 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue