summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-29 18:32:37 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-29 18:32:37 +0200
commit0009558fcb0833ccdf2dcaec9d83b0413125fa5f (patch)
tree91a6258d27a8840c9020ccfbe3c1afaa528d3df5 /src/core/Game.cpp
parentFix Win32 OAL build (diff)
parentUpdate README.md (diff)
downloadre3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.gz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.bz2
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.lz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.xz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.zst
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.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..82e6992d 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 PS2_ALPHA_TEST
+void ReplaceAtomicPipeCallback();
+#endif // PS2_ALPHA_TEST
+#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 PS2_ALPHA_TEST
+ ReplaceAtomicPipeCallback();
+#endif // PS2_ALPHA_TEST
+#endif // LIBRW
CFont::Initialise();
CHud::Initialise();