From 8295fd9c3a18323360f74736e1c16aa4178b5f3a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 10 Aug 2024 14:05:30 +1000 Subject: [PATCH] GPUDevice: Fix debug assertion tripping in Vulkan --- src/util/gpu_framebuffer_manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/gpu_framebuffer_manager.h b/src/util/gpu_framebuffer_manager.h index ec522cf8a..6fb7b910b 100644 --- a/src/util/gpu_framebuffer_manager.h +++ b/src/util/gpu_framebuffer_manager.h @@ -90,7 +90,7 @@ template void GPUFramebufferManager::RemoveRTReferences(const GPUTexture* tex) { - DebugAssert(tex->IsRenderTarget()); + DebugAssert(tex->IsRenderTarget() || tex->IsRWTexture()); for (auto it = m_map.begin(); it != m_map.end();) { if (!it->first.ContainsRT(tex))