From 58047783393524c01601f6b301c58e6f5ab8542b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 13 Sep 2020 01:19:05 +1000 Subject: [PATCH] D3D11/Texture: Fix dimensions not getting reset on destroy --- src/common/d3d11/texture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/d3d11/texture.cpp b/src/common/d3d11/texture.cpp index 1662c822c..1b03d49a6 100644 --- a/src/common/d3d11/texture.cpp +++ b/src/common/d3d11/texture.cpp @@ -121,6 +121,8 @@ void Texture::Destroy() m_rtv.Reset(); m_srv.Reset(); m_texture.Reset(); + m_width = 0; + m_height = 0; } } // namespace D3D11 \ No newline at end of file