mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 01:24:11 +01:00
[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:
parent
4a4d880130
commit
b838b65516
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user