mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 04:29:15 +01:00
[d3d9] Only respect relevant bits of D3DRS_STENCILREF
This commit is contained in:
parent
79cf2e875f
commit
1ea79cf136
@ -5682,7 +5682,7 @@ namespace dxvk {
|
||||
void D3D9DeviceEx::BindDepthStencilRefrence() {
|
||||
auto& rs = m_state.renderStates;
|
||||
|
||||
uint32_t ref = uint32_t(rs[D3DRS_STENCILREF]);
|
||||
uint32_t ref = uint32_t(rs[D3DRS_STENCILREF]) & 0xff;
|
||||
|
||||
EmitCs([cRef = ref] (DxvkContext* ctx) {
|
||||
ctx->setStencilReference(cRef);
|
||||
|
Loading…
x
Reference in New Issue
Block a user