fix(daynight): fix compilation issues

This commit is contained in:
VDm 2025-07-28 00:30:40 +04:00
parent add79bdc94
commit a886fe7d63
4 changed files with 33 additions and 12 deletions

View file

@ -2165,7 +2165,7 @@ void CGxDeviceD3d::SceneClear(uint32_t mask, CImVector color) {
this->IXformSetViewport();
}
D3DCOLOR d3dColor = color.b | (color.g | (color.r << 8) << 8);
D3DCOLOR d3dColor = D3DCOLOR_RGBA(color.r, color.g, color.b, color.a);
this->m_d3dDevice->Clear(0, nullptr, flags, d3dColor, 1.0f, 0);
}