summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-25 12:16:50 +0200
committeraap <aap@papnet.eu>2020-04-25 12:16:50 +0200
commitf15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3 (patch)
tree954ce06142f49daeb3e4b0abfea45678117d2081 /src/rw
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar.gz
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar.bz2
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar.lz
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar.xz
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.tar.zst
re3-f15a5ac0f9e5b9ae4144f58f95f74c498ea9a7f3.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/RwHelper.cpp4
-rw-r--r--src/rw/RwHelper.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index 42e62105..707f1b44 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -9,6 +9,8 @@
RtCharset *debugCharset;
#endif
+bool gPS2alphaTest = 1;
+
static bool charsetOpen;
void OpenCharsetSafe()
{
@@ -101,6 +103,8 @@ DefinedState(void)
#ifdef LIBRW
rw::SetRenderState(rw::ALPHATESTFUNC, rw::ALPHAGREATEREQUAL);
rw::SetRenderState(rw::ALPHATESTREF, 3);
+
+ rw::SetRenderState(rw::GSALPHATEST, gPS2alphaTest);
#else
// D3D stuff
RwD3D8SetRenderState(D3DRS_ALPHAFUNC, D3DCMP_GREATER);
diff --git a/src/rw/RwHelper.h b/src/rw/RwHelper.h
index 8a55a832..a751ee39 100644
--- a/src/rw/RwHelper.h
+++ b/src/rw/RwHelper.h
@@ -1,5 +1,7 @@
#pragma once
+extern bool gPS2alphaTest;
+
void *RwMallocAlign(RwUInt32 size, RwUInt32 align);
void RwFreeAlign(void *mem);