mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-28 03:45:41 +00:00
Fix OpenGL Z-write
# Conflicts: # src/core/main.cpp
This commit is contained in:
parent
dbc458a4d7
commit
c3d7a73c0b
1 changed files with 3 additions and 0 deletions
|
@ -740,12 +740,14 @@ DisplayGameDebugText()
|
||||||
static bool bDisplayRate = false;
|
static bool bDisplayRate = false;
|
||||||
static bool bDisplayCheatStr = false;
|
static bool bDisplayCheatStr = false;
|
||||||
|
|
||||||
|
#ifndef FINAL
|
||||||
{
|
{
|
||||||
SETTWEAKPATH("GameDebugText");
|
SETTWEAKPATH("GameDebugText");
|
||||||
TWEAKBOOL(bDisplayPosn);
|
TWEAKBOOL(bDisplayPosn);
|
||||||
TWEAKBOOL(bDisplayRate);
|
TWEAKBOOL(bDisplayRate);
|
||||||
TWEAKBOOL(bDisplayCheatStr);
|
TWEAKBOOL(bDisplayCheatStr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
char str[200];
|
char str[200];
|
||||||
|
@ -1091,6 +1093,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