[d3d9] Correctly mask alpha reference push constant

We accidentally lost this during the rework, since the initial
implementation scaled the alpha ref value on the CPU.

Fixes #3123.
This commit is contained in:
Philip Rebohle 2022-12-06 22:15:13 +01:00 committed by Joshie
parent 4a4d880130
commit b838b65516
1 changed files with 1 additions and 1 deletions

View File

@ -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<offsetof(D3D9RenderStateInfo, alphaRef), sizeof(uint32_t)>(&alpha);
}
else if constexpr (Item == D3D9RenderStateItem::FogColor) {