Skip to content

Commit

Permalink
[d3d9] Only enable ATOC when rendering to MS RT
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin authored and misyltoad committed Jan 26, 2024
1 parent d4c5fc7 commit 7d9864c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7d9864c

Please sign in to comment.