1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00

[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

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)