diff options
author | Axel Davy <[email protected]> | 2016-12-03 18:58:00 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:47:08 +0100 |
commit | 098ba64c4c2e15defb469b791fb3e88f89ae8759 (patch) | |
tree | 0e87906358aa155c7bffa158d9d4ce7d2ff48e31 /src/gallium/state_trackers/nine/swapchain9.c | |
parent | 14875ebd83fe746fc8c42496c385cc261e495dd2 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/swapchain9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index feaece2f77f..9815acf7a4a 100644 --- a/src/gallium/state_trackers/nine/swapchain9.c +++ b/src/gallium/state_trackers/nine/swapchain9.c @@ -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]) |