feat(gx): handle depth device states in d3d backend

This commit is contained in:
fallenoak 2023-03-11 13:03:50 -06:00
parent 2c059ce55e
commit 5d80397fa6

View File

@ -480,6 +480,15 @@ void CGxDeviceD3d::DsSet(EDeviceState state, uint32_t val) {
this->m_d3dDevice->SetRenderState(D3DRS_ALPHAREF, val);
break;
}
case Ds_ZWriteEnable: {
this->m_d3dDevice->SetRenderState(D3DRS_ZWRITEENABLE, val);
break;
}
case Ds_ZFunc: {
this->m_d3dDevice->SetRenderState(D3DRS_ZFUNC, val);
}
}
this->m_deviceStates[state] = val;