mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 13:49:03 +00:00
fix a struct init
This commit is contained in:
parent
e9d0a1d015
commit
9d62bed9f3
1 changed files with 5 additions and 1 deletions
|
@ -133,7 +133,11 @@ EnvMapRender(void)
|
||||||
EnvMapCam->getFrame()->matrix.pos = camPos;
|
EnvMapCam->getFrame()->matrix.pos = camPos;
|
||||||
EnvMapCam->getFrame()->transform(&EnvMapCam->getFrame()->matrix, rw::COMBINEREPLACE);
|
EnvMapCam->getFrame()->transform(&EnvMapCam->getFrame()->matrix, rw::COMBINEREPLACE);
|
||||||
|
|
||||||
rw::RGBA skycol = { CTimeCycle::GetSkyBottomRed(), CTimeCycle::GetSkyBottomGreen(), CTimeCycle::GetSkyBottomBlue(), 255 };
|
rw::RGBA skycol;
|
||||||
|
skycol.red = CTimeCycle::GetSkyBottomRed();
|
||||||
|
skycol.green = CTimeCycle::GetSkyBottomGreen();
|
||||||
|
skycol.blue = CTimeCycle::GetSkyBottomBlue();
|
||||||
|
skycol.alpha = 255;
|
||||||
EnvMapCam->clear(&skycol, rwCAMERACLEARZ|rwCAMERACLEARIMAGE);
|
EnvMapCam->clear(&skycol, rwCAMERACLEARZ|rwCAMERACLEARIMAGE);
|
||||||
RwCameraBeginUpdate(EnvMapCam);
|
RwCameraBeginUpdate(EnvMapCam);
|
||||||
bRenderingEnvMap = true;
|
bRenderingEnvMap = true;
|
||||||
|
|
Loading…
Reference in a new issue