summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-10-24 20:56:04 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2020-10-24 20:56:04 +0200
commit92ae468e008438d4563c0ee005bba1977099abd6 (patch)
treeb3921ee44d221092f7f1d6544fbaedc26ae52af0 /src/rw/RwHelper.cpp
parentMerge pull request #781 from AGraber/bugfix/cdstream_threads (diff)
downloadre3-92ae468e008438d4563c0ee005bba1977099abd6.tar
re3-92ae468e008438d4563c0ee005bba1977099abd6.tar.gz
re3-92ae468e008438d4563c0ee005bba1977099abd6.tar.bz2
re3-92ae468e008438d4563c0ee005bba1977099abd6.tar.lz
re3-92ae468e008438d4563c0ee005bba1977099abd6.tar.xz
re3-92ae468e008438d4563c0ee005bba1977099abd6.tar.zst
re3-92ae468e008438d4563c0ee005bba1977099abd6.zip
Diffstat (limited to '')
-rw-r--r--src/rw/RwHelper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index fca5b4a4..1c6c434c 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -437,7 +437,7 @@ CameraSize(RwCamera * camera, RwRect * rect,
RwRaster *zRaster;
// BUG: game just changes camera raster's sizes, but this is a hack
-#ifdef FIX_BUGS
+#if 0//def FIX_BUGS
/*
* Destroy rasters...
*/
@@ -446,12 +446,14 @@ CameraSize(RwCamera * camera, RwRect * rect,
if( raster )
{
RwRasterDestroy(raster);
+ camera->frameBuffer = nil;
}
zRaster = RwCameraGetZRaster(camera);
if( zRaster )
{
RwRasterDestroy(zRaster);
+ camera->zBuffer = nil;
}
/*
@@ -657,4 +659,4 @@ RestoreAlphaTest()
RwD3D8SetRenderState(D3DRS_ALPHAREF, saved_alpharef);
#endif
}
-#endif \ No newline at end of file
+#endif