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)