From 55be12daa5bd9024b6d342a12e77345221710787 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 24 Jun 2023 04:06:24 +0100 Subject: [PATCH] Revert "[d3d9] Use m_activeRTs in BindFramebuffer" This is only textures. Oops. This reverts commit ff65599dbab5514b8592cb8e02300445128dbd62. --- src/d3d9/d3d9_device.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index adc63d1e..c55d08d3 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5858,7 +5858,7 @@ namespace dxvk { // target bindings are updated. Set up the attachments. VkSampleCountFlagBits sampleCount = VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM; - for (uint32_t i : bit::BitMask(m_activeRTs)) { + for (uint32_t i : bit::BitMask(m_boundRTs)) { const DxvkImageCreateInfo& rtImageInfo = m_state.renderTargets[i]->GetCommonTexture()->GetImage()->info(); if (likely(sampleCount == VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM)) @@ -5866,7 +5866,8 @@ namespace dxvk { else if (unlikely(sampleCount != rtImageInfo.sampleCount)) continue; - // Any color writes are included in m_activeRTs + if (!(m_anyColorWrites & (1 << i))) + continue; if (!(m_psShaderMasks.rtMask & (1 << i))) continue;