summaryrefslogtreecommitdiffstats
path: root/src/extras/custompipes.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-26 15:42:05 +0100
committeraap <aap@papnet.eu>2020-12-26 15:42:05 +0100
commit9d62bed9f3f969e0aedf6960fe67f2638b80a791 (patch)
tree9d4e5fa63f3f6157464f276c99dbe6f9bb7b0322 /src/extras/custompipes.cpp
parentffs (diff)
downloadre3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar.gz
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar.bz2
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar.lz
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar.xz
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.tar.zst
re3-9d62bed9f3f969e0aedf6960fe67f2638b80a791.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 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;