mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 05:35:40 +00:00
fix postfx
This commit is contained in:
parent
82245789ed
commit
ce604c77ba
2 changed files with 11 additions and 0 deletions
|
@ -49,6 +49,9 @@ CPostFX::InitOnce(void)
|
||||||
void
|
void
|
||||||
CPostFX::Open(RwCamera *cam)
|
CPostFX::Open(RwCamera *cam)
|
||||||
{
|
{
|
||||||
|
if(pFrontBuffer)
|
||||||
|
Close();
|
||||||
|
|
||||||
uint32 width = Pow(2.0f, int32(log2(RwRasterGetWidth (RwCameraGetRaster(cam))))+1);
|
uint32 width = Pow(2.0f, int32(log2(RwRasterGetWidth (RwCameraGetRaster(cam))))+1);
|
||||||
uint32 height = Pow(2.0f, int32(log2(RwRasterGetHeight(RwCameraGetRaster(cam))))+1);
|
uint32 height = Pow(2.0f, int32(log2(RwRasterGetHeight(RwCameraGetRaster(cam))))+1);
|
||||||
uint32 depth = RwRasterGetDepth(RwCameraGetRaster(cam));
|
uint32 depth = RwRasterGetDepth(RwCameraGetRaster(cam));
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include "Timecycle.h"
|
#include "Timecycle.h"
|
||||||
#include "skeleton.h"
|
#include "skeleton.h"
|
||||||
#include "Debug.h"
|
#include "Debug.h"
|
||||||
|
#include "MBlur.h"
|
||||||
#if !defined(FINAL) || defined(DEBUGMENU)
|
#if !defined(FINAL) || defined(DEBUGMENU)
|
||||||
#include "rtcharse.h"
|
#include "rtcharse.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -608,6 +609,13 @@ CameraSize(RwCamera * camera, RwRect * rect,
|
||||||
|
|
||||||
RsGlobal.width = rect->w;
|
RsGlobal.width = rect->w;
|
||||||
RsGlobal.height = rect->h;
|
RsGlobal.height = rect->h;
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if(CMBlur::BlurOn){
|
||||||
|
CMBlur::MotionBlurClose();
|
||||||
|
CMBlur::MotionBlurOpen(camera);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue