summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-28 15:30:13 +0100
committeraap <aap@papnet.eu>2021-02-28 15:30:13 +0100
commitce604c77bade850b7e02673b25d21c5f001548ca (patch)
tree6bd72ff023794d2a430f81796984b904be5cfefc /src/extras
parentproper radar clipping (diff)
downloadre3-ce604c77bade850b7e02673b25d21c5f001548ca.tar
re3-ce604c77bade850b7e02673b25d21c5f001548ca.tar.gz
re3-ce604c77bade850b7e02673b25d21c5f001548ca.tar.bz2
re3-ce604c77bade850b7e02673b25d21c5f001548ca.tar.lz
re3-ce604c77bade850b7e02673b25d21c5f001548ca.tar.xz
re3-ce604c77bade850b7e02673b25d21c5f001548ca.tar.zst
re3-ce604c77bade850b7e02673b25d21c5f001548ca.zip
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/postfx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp
index f698bd52..ee6c3964 100644
--- a/src/extras/postfx.cpp
+++ b/src/extras/postfx.cpp
@@ -49,6 +49,9 @@ CPostFX::InitOnce(void)
void
CPostFX::Open(RwCamera *cam)
{
+ if(pFrontBuffer)
+ Close();
+
uint32 width = Pow(2.0f, int32(log2(RwRasterGetWidth (RwCameraGetRaster(cam))))+1);
uint32 height = Pow(2.0f, int32(log2(RwRasterGetHeight(RwCameraGetRaster(cam))))+1);
uint32 depth = RwRasterGetDepth(RwCameraGetRaster(cam));