mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
GPUDevice: Fix debug assertion tripping in Vulkan
This commit is contained in:
parent
b72e622ae0
commit
8295fd9c3a
|
@ -90,7 +90,7 @@ template<typename FBOType, FBOType (*FactoryFunc)(GPUTexture* const* rts, u32 nu
|
||||||
void (*DestroyFunc)(FBOType fbo)>
|
void (*DestroyFunc)(FBOType fbo)>
|
||||||
void GPUFramebufferManager<FBOType, FactoryFunc, DestroyFunc>::RemoveRTReferences(const GPUTexture* tex)
|
void GPUFramebufferManager<FBOType, FactoryFunc, DestroyFunc>::RemoveRTReferences(const GPUTexture* tex)
|
||||||
{
|
{
|
||||||
DebugAssert(tex->IsRenderTarget());
|
DebugAssert(tex->IsRenderTarget() || tex->IsRWTexture());
|
||||||
for (auto it = m_map.begin(); it != m_map.end();)
|
for (auto it = m_map.begin(); it != m_map.end();)
|
||||||
{
|
{
|
||||||
if (!it->first.ContainsRT(tex))
|
if (!it->first.ContainsRT(tex))
|
||||||
|
|
Loading…
Reference in a new issue