diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index b882fcc4..b5be3db8 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5187,7 +5187,7 @@ namespace dxvk { auto& rs = m_state.renderStates; if constexpr (Item == D3D9RenderStateItem::AlphaRef) { - uint32_t alpha = rs[D3DRS_ALPHAREF]; + uint32_t alpha = rs[D3DRS_ALPHAREF] & 0xFF; UpdatePushConstant(&alpha); } else if constexpr (Item == D3D9RenderStateItem::FogColor) {