Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Close CPostFX when attempting to Open again
Stops front/back buffers and some shaders from leaking
  • Loading branch information
AGraber committed Feb 18, 2021
1 parent 48cec4a commit 894bbeb7437cf8e86e55cd547e98d6ea658c817f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/extras/postfx.cpp
@@ -48,6 +48,9 @@ CPostFX::InitOnce(void)
void
CPostFX::Open(RwCamera *cam)
{
if(bJustInitialised){
CPostFX::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));

0 comments on commit 894bbeb

Please sign in to comment.