GPUDevice: Fix debug assertion tripping in Vulkan

This commit is contained in:
Stenzek 2024-08-10 14:05:30 +10:00
parent b72e622ae0
commit 8295fd9c3a
No known key found for this signature in database

View file

@ -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))