diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-04-09 03:31:46 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-04-09 03:31:46 +0200 |
commit | 519218572a1303f6717bbc2cccc45d0c8a272d33 (patch) | |
tree | 50ae3120394891b6810ede249c8a71811c0591bc /src/extras/postfx.cpp | |
parent | Merge branch 'miami' into lcs (diff) | |
parent | update librw (diff) | |
download | re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar.gz re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar.bz2 re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar.lz re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar.xz re3-519218572a1303f6717bbc2cccc45d0c8a272d33.tar.zst re3-519218572a1303f6717bbc2cccc45d0c8a272d33.zip |
Diffstat (limited to 'src/extras/postfx.cpp')
-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 563865b5..84c1d059 100644 --- a/src/extras/postfx.cpp +++ b/src/extras/postfx.cpp @@ -51,6 +51,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)); |