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:
parent
bf03fd8732
commit
7567486668
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user