[dxvk] Avoid needless refcount in updateFramebuffer

Avoids a needless refcount
This commit is contained in:
Joshua Ashton 2021-08-09 02:33:27 +01:00 committed by Philip Rebohle
parent a35f2af5e5
commit 79cf2e875f
1 changed files with 1 additions and 1 deletions

View File

@ -4448,7 +4448,7 @@ namespace dxvk {
m_state.om.framebuffer = fb;
for (uint32_t i = 0; i < MaxNumRenderTargets; i++) {
Rc<DxvkImageView> attachment = fb->getColorTarget(i).view;
const Rc<DxvkImageView>& attachment = fb->getColorTarget(i).view;
VkComponentMapping mapping = attachment != nullptr
? util::invertComponentMapping(attachment->info().swizzle)