diff options
author | Axel Davy <[email protected]> | 2016-11-18 19:11:29 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:21 +0100 |
commit | 35ea402a24545770353713434e35bd791687841c (patch) | |
tree | 1971b643e6c207f7c136ac2a9cf0cd92b6e9d971 /src/gallium/state_trackers/nine/swapchain9.h | |
parent | f78cbbdfaaf2e83708da93fe62b1b73c27cd3ef5 (diff) |
st/nine: Fix a leak in Swapchain dtor
Count properly the number of backbuffers,
and use the new info to release the correct
number of buffers
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/swapchain9.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.h b/src/gallium/state_trackers/nine/swapchain9.h index 551c74486e3..9f33d17b47d 100644 --- a/src/gallium/state_trackers/nine/swapchain9.h +++ b/src/gallium/state_trackers/nine/swapchain9.h @@ -53,6 +53,7 @@ struct NineSwapChain9 D3DDISPLAYMODEEX *mode; struct d3dadapter9_context *actx; BOOL implicit; + unsigned num_back_buffers; /* buffer handles */ struct NineSurface9 *buffers[D3DPRESENT_BACK_BUFFERS_MAX_EX + 1]; /* 0 to BackBufferCount-1 : the back buffers. BackBufferCount : additional buffer */ |