feat(gx): handle scissor test render state in d3d backend

This commit is contained in:
fallenoak 2023-03-11 16:40:05 -06:00
parent ddcbd5829d
commit c0d256f0a0

View File

@ -879,6 +879,13 @@ void CGxDeviceD3d::IRsSendToHw(EGxRenderState which) {
break;
}
case GxRs_ScissorTest: {
auto scissorTestEnable = static_cast<uint32_t>(state->m_value) != 0;
this->m_d3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, scissorTestEnable);
break;
}
case GxRs_Texture0:
case GxRs_Texture1:
case GxRs_Texture2: