Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Open Motion Blur stuff again after a camera resize
Fixes incorrect PostFX raster sizes after resolution change
  • Loading branch information
AGraber committed Feb 19, 2021
1 parent 894bbeb commit 8de8445924ad8fe386ab745c35124b18efb0561a
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/rw/RwHelper.cpp
@@ -6,6 +6,9 @@
#include "Timecycle.h"
#include "skeleton.h"
#include "Debug.h"
#if defined(FIX_BUGS) || defined(LIBRW)
#include "MBlur.h"
#endif
#if !defined(FINAL) || defined(DEBUGMENU)
#include "rtcharse.h"
#endif
@@ -486,6 +489,8 @@ CameraSize(RwCamera * camera, RwRect * rect,
RwCameraSetRaster(camera, raster);
RwCameraSetZRaster(camera, zRaster);
}

CMBlur::MotionBlurOpen(camera);
#else
raster = RwCameraGetRaster(camera);
zRaster = RwCameraGetZRaster(camera);

0 comments on commit 8de8445

Please sign in to comment.