mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/nine: Detach buffers in swapchain dtor.
BackBuffers can survive swapchain dtor if the user has a reference on them. The swapchain itself has no reference on the buffer. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
14875ebd83
commit
098ba64c4c
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ NineSwapChain9_dtor( struct NineSwapChain9 *This )
|
|||
|
||||
for (i = 0; i < This->num_back_buffers; i++) {
|
||||
if (This->buffers[i])
|
||||
NineUnknown_Release(NineUnknown(This->buffers[i]));
|
||||
NineUnknown_Detach(NineUnknown(This->buffers[i]));
|
||||
if (This->present_handles[i])
|
||||
ID3DPresent_DestroyD3DWindowBuffer(This->present, This->present_handles[i]);
|
||||
if (This->present_buffers[i])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue