1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-24 00:40:01 +00:00

Fix OpenGL Z-write

# Conflicts:
#	src/core/main.cpp
This commit is contained in:
Sergeanur 2020-09-26 00:24:30 +03:00
parent dbc458a4d7
commit c3d7a73c0b

View file

@ -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());