mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
feat(d3d): add GxRs_Lighting case in CGxDeviceD3d::IRsSendToHw (fix cursor appearance)
This commit is contained in:
parent
d80e2b4b4f
commit
2f070a489e
@ -1109,6 +1109,20 @@ void CGxDeviceD3d::IRsSendToHw(EGxRenderState which) {
|
||||
break;
|
||||
}
|
||||
|
||||
case GxRs_Lighting: {
|
||||
int32_t enabled = 0;
|
||||
|
||||
if (this->MasterEnable(GxMasterEnable_Lighting)) {
|
||||
enabled = state->m_value.m_data.i[0] != 0;
|
||||
}
|
||||
|
||||
if (this->m_deviceStates[Ds_Lighting] != enabled) {
|
||||
this->m_d3dDevice->SetRenderState(D3DRS_LIGHTING, enabled);
|
||||
this->m_deviceStates[Ds_Lighting] = enabled;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case GxRs_DepthTest:
|
||||
case GxRs_DepthFunc: {
|
||||
auto depthTest = static_cast<uint32_t>((&this->m_appRenderStates[GxRs_DepthTest])->m_value);
|
||||
|
Loading…
Reference in New Issue
Block a user