From 79cf2e875ff384138fd8d4002b09fa43dd5df27f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 9 Aug 2021 02:33:27 +0100 Subject: [PATCH] [dxvk] Avoid needless refcount in updateFramebuffer Avoids a needless refcount --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index d636b8ad..526ab308 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -4448,7 +4448,7 @@ namespace dxvk { m_state.om.framebuffer = fb; for (uint32_t i = 0; i < MaxNumRenderTargets; i++) { - Rc attachment = fb->getColorTarget(i).view; + const Rc& attachment = fb->getColorTarget(i).view; VkComponentMapping mapping = attachment != nullptr ? util::invertComponentMapping(attachment->info().swizzle)