From c3d7a73c0b699a82dec017b0391eb2f8fd90ab64 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 26 Sep 2020 00:24:30 +0300 Subject: Fix OpenGL Z-write # Conflicts: # src/core/main.cpp --- src/core/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/main.cpp') diff --git a/src/core/main.cpp b/src/core/main.cpp index 5a31ad22..b39a9c8b 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -740,12 +740,14 @@ DisplayGameDebugText() static bool bDisplayRate = false; static bool bDisplayCheatStr = false; +#ifndef FINAL { SETTWEAKPATH("GameDebugText"); TWEAKBOOL(bDisplayPosn); TWEAKBOOL(bDisplayRate); TWEAKBOOL(bDisplayCheatStr); } +#endif char str[200]; @@ -1091,6 +1093,7 @@ Idle(void *arg) #endif #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 RwCameraSetFarClipPlane(Scene.camera, CTimeCycle::GetFarClip()); RwCameraSetFogDistance(Scene.camera, CTimeCycle::GetFogStart()); -- cgit v1.2.3