From 7d9864c077e2c583d1656a374b467c10d8e3ff30 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Thu, 25 Jan 2024 21:05:09 +0100 Subject: [PATCH] [d3d9] Only enable ATOC when rendering to MS RT --- src/d3d9/d3d9_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.h b/src/d3d9/d3d9_device.h index 99a2a7439..d7ac8c00a 100644 --- a/src/d3d9/d3d9_device.h +++ b/src/d3d9/d3d9_device.h @@ -816,7 +816,7 @@ namespace dxvk { inline bool IsAlphaToCoverageEnabled() { const bool alphaTest = m_state.renderStates[D3DRS_ALPHATESTENABLE] != 0; - return m_amdATOC || (m_nvATOC && alphaTest); + return (m_amdATOC || (m_nvATOC && alphaTest)) && m_flags.test(D3D9DeviceFlag::ValidSampleMask); } inline bool IsDepthBiasEnabled() {