[d3d9] Handle invalid alpha ref correctly

This commit is contained in:
Philip Rebohle 2020-02-10 09:14:59 +01:00 committed by Joshie
parent bf03fd8732
commit 7567486668
1 changed files with 1 additions and 1 deletions

View File

@ -4570,7 +4570,7 @@ namespace dxvk {
auto& rs = m_state.renderStates;
if constexpr (Item == D3D9RenderStateItem::AlphaRef) {
float alpha = float(rs[D3DRS_ALPHAREF]) / 255.0f;
float alpha = float(rs[D3DRS_ALPHAREF] & 0xFF) / 255.0f;
UpdatePushConstant<offsetof(D3D9RenderStateInfo, alphaRef), sizeof(float)>(&alpha);
}
else if constexpr (Item == D3D9RenderStateItem::FogColor) {