mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(d3d): add GxRs_Lighting case in CGxDeviceD3d::IRsSendToHw (fix cursor appearance)
This commit is contained in:
parent
d80e2b4b4f
commit
2f070a489e
1 changed files with 14 additions and 0 deletions
|
|
@ -1109,6 +1109,20 @@ void CGxDeviceD3d::IRsSendToHw(EGxRenderState which) {
|
||||||
break;
|
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_DepthTest:
|
||||||
case GxRs_DepthFunc: {
|
case GxRs_DepthFunc: {
|
||||||
auto depthTest = static_cast<uint32_t>((&this->m_appRenderStates[GxRs_DepthTest])->m_value);
|
auto depthTest = static_cast<uint32_t>((&this->m_appRenderStates[GxRs_DepthTest])->m_value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue