mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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() {
|
void D3D9DeviceEx::BindDepthStencilRefrence() {
|
||||||
auto& rs = m_state.renderStates;
|
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) {
|
EmitCs([cRef = ref] (DxvkContext* ctx) {
|
||||||
ctx->setStencilReference(cRef);
|
ctx->setStencilReference(cRef);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user