diff options
author | aap <aap@papnet.eu> | 2021-02-28 15:29:58 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-02-28 15:29:58 +0100 |
commit | df1ad8e122e43967710470e275844b62c4962e5d (patch) | |
tree | 8246955bed329e5c2a7668b8bd5c32ebbc079a54 /src/extras/postfx.cpp | |
parent | proper radar clipping (diff) | |
download | re3-df1ad8e122e43967710470e275844b62c4962e5d.tar re3-df1ad8e122e43967710470e275844b62c4962e5d.tar.gz re3-df1ad8e122e43967710470e275844b62c4962e5d.tar.bz2 re3-df1ad8e122e43967710470e275844b62c4962e5d.tar.lz re3-df1ad8e122e43967710470e275844b62c4962e5d.tar.xz re3-df1ad8e122e43967710470e275844b62c4962e5d.tar.zst re3-df1ad8e122e43967710470e275844b62c4962e5d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/extras/postfx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp index 03d4833e..425a22d4 100644 --- a/src/extras/postfx.cpp +++ b/src/extras/postfx.cpp @@ -48,6 +48,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)); |