mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 11:59:02 +00:00
Fix OpenGL Z-write
This commit is contained in:
parent
6dfb32d285
commit
0ce8082bda
1 changed files with 3 additions and 1 deletions
|
@ -757,12 +757,13 @@ DisplayGameDebugText()
|
||||||
{
|
{
|
||||||
static bool bDisplayPosn = false;
|
static bool bDisplayPosn = false;
|
||||||
static bool bDisplayRate = false;
|
static bool bDisplayRate = false;
|
||||||
|
#ifndef FINAL
|
||||||
{
|
{
|
||||||
SETTWEAKPATH("GameDebugText");
|
SETTWEAKPATH("GameDebugText");
|
||||||
TWEAKBOOL(bDisplayPosn);
|
TWEAKBOOL(bDisplayPosn);
|
||||||
TWEAKBOOL(bDisplayRate);
|
TWEAKBOOL(bDisplayRate);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
char str[200];
|
char str[200];
|
||||||
|
@ -1111,6 +1112,7 @@ Idle(void *arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
|
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void *)FALSE); // TODO: temp? this fixes OpenGL render but there should be a better place for this
|
||||||
// This has to be done BEFORE RwCameraBeginUpdate
|
// This has to be done BEFORE RwCameraBeginUpdate
|
||||||
RwCameraSetFarClipPlane(Scene.camera, CTimeCycle::GetFarClip());
|
RwCameraSetFarClipPlane(Scene.camera, CTimeCycle::GetFarClip());
|
||||||
RwCameraSetFogDistance(Scene.camera, CTimeCycle::GetFogStart());
|
RwCameraSetFogDistance(Scene.camera, CTimeCycle::GetFogStart());
|
||||||
|
|
Loading…
Reference in a new issue