release swapchain SRV on resize
continuous-integration/drone/push Build is failing Details

d3d11
cosmonaut 2024-03-05 22:45:47 -08:00
parent 45e7dde067
commit 548c468cc9
1 changed files with 1 additions and 0 deletions

View File

@ -3680,6 +3680,7 @@ static uint8_t D3D11_INTERNAL_ResizeSwapchain(
int32_t height
) {
/* Release the old views */
ID3D11ShaderResourceView_Release(windowData->texture.shaderView);
ID3D11RenderTargetView_Release(windowData->texture.subresources[0].colorTargetView);
ID3D11UnorderedAccessView_Release(windowData->texture.subresources[0].uav);
SDL_free(windowData->texture.subresources);