mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-01 19:29:16 +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;
|
auto& rs = m_state.renderStates;
|
||||||
|
|
||||||
if constexpr (Item == D3D9RenderStateItem::AlphaRef) {
|
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);
|
UpdatePushConstant<offsetof(D3D9RenderStateInfo, alphaRef), sizeof(float)>(&alpha);
|
||||||
}
|
}
|
||||||
else if constexpr (Item == D3D9RenderStateItem::FogColor) {
|
else if constexpr (Item == D3D9RenderStateItem::FogColor) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user