1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[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

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) {