summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-26 15:41:57 +0100
committeraap <aap@papnet.eu>2020-12-26 15:41:57 +0100
commitc5010d443c4e7a12a70927e33bb52c7fe50fdddc (patch)
treeeca8a4371da35910bb9aff7ddfd7c84c4b016c59
parentffs (diff)
downloadre3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar.gz
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar.bz2
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar.lz
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar.xz
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.tar.zst
re3-c5010d443c4e7a12a70927e33bb52c7fe50fdddc.zip
Diffstat (limited to '')
-rw-r--r--src/extras/custompipes.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp
index bb3ebd2e..e6dff12a 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;