From 12875cbcac5d8ae2e13445c44318129c5edd8e00 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 30 Jul 2022 12:58:20 +1000 Subject: [PATCH] D3D12/StagingTexture: Fix map persisting through resize --- src/common/d3d12/staging_texture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/d3d12/staging_texture.cpp b/src/common/d3d12/staging_texture.cpp index ba434d9cb..649049897 100644 --- a/src/common/d3d12/staging_texture.cpp +++ b/src/common/d3d12/staging_texture.cpp @@ -45,6 +45,8 @@ bool StagingTexture::Create(u32 width, u32 height, DXGI_FORMAT format, bool for_ return false; } + Destroy(true); + m_resource = std::move(resource); m_width = width; m_height = height;