summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-29 14:34:57 +0200
committerSergeanur <s.anureev@yandex.ua>2020-07-29 14:34:57 +0200
commitacdc52116ea78b4ebf065b23b0cd48d7e41c711a (patch)
treed50d8667825d3d9e9f99d4948d349e1ffc4e3f97 /src/core/Game.cpp
parentsome fakerw additions for shadows; update librw (diff)
parentAdd forgotten file (diff)
downloadre3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.gz
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.bz2
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.lz
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.xz
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.zst
re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.zip
Diffstat (limited to 'src/core/Game.cpp')
-rw-r--r--src/core/Game.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 39bbd364..75c3773c 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -152,9 +152,14 @@ CGame::InitialiseOnceBeforeRW(void)
return true;
}
-#if !defined(LIBRW) && defined(PS2_MATFX)
+#ifndef LIBRW
+#ifdef PS2_MATFX
void ReplaceMatFxCallback();
-#endif
+#endif // PS2_MATFX
+#ifdef DUAL_PASS_RENDERING
+void ReplaceAtomicPipeCallback();
+#endif // DUAL_PASS_RENDERING
+#endif // !LIBRW
bool
CGame::InitialiseRenderWare(void)
@@ -206,9 +211,14 @@ CGame::InitialiseRenderWare(void)
#else
rw::MatFX::modulateEnvMap = false;
#endif
-#elif defined(PS2_MATFX)
+#else
+#ifdef PS2_MATFX
ReplaceMatFxCallback();
-#endif
+#endif // PS2_MATFX
+#ifdef DUAL_PASS_RENDERING
+ ReplaceAtomicPipeCallback();
+#endif // DUAL_PASS_RENDERING
+#endif // LIBRW
CFont::Initialise();
CHud::Initialise();