D3D12/StagingTexture: Fix map persisting through resize
This commit is contained in:
parent
a48ee3282a
commit
12875cbcac
|
@ -45,6 +45,8 @@ bool StagingTexture::Create(u32 width, u32 height, DXGI_FORMAT format, bool for_
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Destroy(true);
|
||||||
|
|
||||||
m_resource = std::move(resource);
|
m_resource = std::move(resource);
|
||||||
m_width = width;
|
m_width = width;
|
||||||
m_height = height;
|
m_height = height;
|
||||||
|
|
Loading…
Reference in New Issue