summaryrefslogtreecommitdiffstats
path: root/src/extras/postfx.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-22 00:12:31 +0100
committerGitHub <noreply@github.com>2020-11-22 00:12:31 +0100
commitb9b7d5ac2110227327d950625e79aa400eaf3e47 (patch)
tree00b457d72d5abda01475944b8f5f9994c357360c /src/extras/postfx.cpp
parentReorganize CPed functions into their original cpp files (diff)
parentneo screen droplets (diff)
downloadre3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar.gz
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar.bz2
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar.lz
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar.xz
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.tar.zst
re3-b9b7d5ac2110227327d950625e79aa400eaf3e47.zip
Diffstat (limited to '')
-rw-r--r--src/extras/postfx.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp
index f7b120a8..2ea08141 100644
--- a/src/extras/postfx.cpp
+++ b/src/extras/postfx.cpp
@@ -376,6 +376,14 @@ CPostFX::NeedFrontBuffer(int32 type)
}
void
+CPostFX::GetBackBuffer(RwCamera *cam)
+{
+ RwRasterPushContext(pBackBuffer);
+ RwRasterRenderFast(RwCameraGetRaster(cam), 0, 0);
+ RwRasterPopContext();
+}
+
+void
CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blur, int32 type, uint32 bluralpha)
{
if(pFrontBuffer == nil)
@@ -391,11 +399,8 @@ CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blu
blur = AvgAlpha;
}
- if(NeedBackBuffer()){
- RwRasterPushContext(pBackBuffer);
- RwRasterRenderFast(RwCameraGetRaster(cam), 0, 0);
- RwRasterPopContext();
- }
+ if(NeedBackBuffer())
+ GetBackBuffer(cam);
DefinedState();