diff options
author | aap <aap@papnet.eu> | 2020-12-26 15:42:05 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-26 15:42:05 +0100 |
commit | 9d62bed9f3f969e0aedf6960fe67f2638b80a791 (patch) | |
tree | 9d4e5fa63f3f6157464f276c99dbe6f9bb7b0322 /src/extras | |
parent | e9d0a1d01553436b9facef274ddf71224af7ce2f (diff) |
fix a struct init
Diffstat (limited to 'src/extras')
-rw-r--r-- | src/extras/custompipes.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index d6c8e065..abffea8f 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -133,7 +133,11 @@ EnvMapRender(void) EnvMapCam->getFrame()->matrix.pos = camPos; 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); RwCameraBeginUpdate(EnvMapCam); bRenderingEnvMap = true; |