summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-29 14:24:42 +0200
committerSergeanur <s.anureev@yandex.ua>2020-07-29 14:24:42 +0200
commit6b92e9e12b376b9edf04070ecf83179e9a0f8fda (patch)
tree2a3bb24458b915e9c19bd3ad5102b45f8e905c0f /src/core/Game.cpp
parentThe real pickup reflection fix (diff)
downloadre3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar.gz
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar.bz2
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar.lz
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar.xz
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.tar.zst
re3-6b92e9e12b376b9edf04070ecf83179e9a0f8fda.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 0d839dfa..2c9e784c 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -149,9 +149,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)
@@ -203,9 +208,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();