fix postfx

This commit is contained in:
aap
2021-02-28 15:29:58 +01:00
parent 931bc690cd
commit df1ad8e122
2 changed files with 11 additions and 0 deletions

View File

@ -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));