Skip to content

Commit f28c1c9

Browse files
committed
Fix ZBias with d3d9 in Hospital 3F room
1 parent 4c65dd2 commit f28c1c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/BuildNo.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define BUILD_NUMBER 2245
1+
#define BUILD_NUMBER 2246

Wrappers/d3d8/IDirect3DDevice8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ HRESULT m_IDirect3DDevice8::SetRenderState(D3DRENDERSTATETYPE State, DWORD Value
882882
// Fix for 2D Fog, light switches, pictures and glow around the flashlight lens
883883
if (d3d8to9 && State == D3DRS_ZBIAS)
884884
{
885-
Value = 0;
885+
Value = Value / 3;
886886
}
887887

888888
// Restores self shadows

0 commit comments

Comments
 (0)