summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-18 12:21:52 +0100
committeraap <aap@papnet.eu>2021-02-18 12:21:52 +0100
commit996772faf2b7ed17269af194c6d9dcbdb37732fe (patch)
treecfb4d76317a169f665bf1f500e36d4aa2c0e54ec /src/extras
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.gz
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.bz2
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.lz
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.xz
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.zst
re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.zip
Diffstat (limited to '')
-rw-r--r--src/extras/postfx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp
index b47deab4..f698bd52 100644
--- a/src/extras/postfx.cpp
+++ b/src/extras/postfx.cpp
@@ -7,6 +7,7 @@
#error "Need librw for EXTENDED_COLOURFILTER"
#endif
+#include "main.h"
#include "RwHelper.h"
#include "Camera.h"
#include "MBlur.h"
@@ -385,6 +386,8 @@ CPostFX::GetBackBuffer(RwCamera *cam)
void
CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blur, int32 type, uint32 bluralpha)
{
+ PUSH_RENDERGROUP("CPostFX::Render");
+
if(pFrontBuffer == nil)
Open(cam);
assert(pFrontBuffer);
@@ -446,6 +449,8 @@ CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blu
bJustInitialised = false;
}else
bJustInitialised = true;
+
+ POP_RENDERGROUP();
}
int CPostFX::PrevRed[NUMAVERAGE], CPostFX::AvgRed;