Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix OpenGL Z-write
  • Loading branch information
Sergeanur committed Sep 25, 2020
1 parent 6dfb32d commit 0ce8082bdaac94f127f6783023b99d6d4cf8e297
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/main.cpp
@@ -757,12 +757,13 @@ DisplayGameDebugText()
{
static bool bDisplayPosn = false;
static bool bDisplayRate = false;

#ifndef FINAL
{
SETTWEAKPATH("GameDebugText");
TWEAKBOOL(bDisplayPosn);
TWEAKBOOL(bDisplayRate);
}
#endif


char str[200];
@@ -1111,6 +1112,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());

0 comments on commit 0ce8082

Please sign in to comment.