1
0
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:
Georg Lehmann 2021-08-09 19:52:31 +02:00 committed by Joshie
parent 79cf2e875f
commit 1ea79cf136

View File

@ -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);