From 06c855c7d223e1f606f0291b415c9c226c3c8a58 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 13 Jan 2009 23:37:40 +0000 Subject: [PATCH] fix depth buffer range --- panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index 87b54f4e7e..fb751abf2d 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -4425,6 +4425,8 @@ set_scissor(float left, float right, float bottom, float top) { vp.X = _current_viewport.X + _current_viewport.Width * left; vp.Height = _current_viewport.Height * (top - bottom); vp.Y = _current_viewport.Y + _current_viewport.Height * (1.0f - top); + vp.MinZ = 0.0f; + vp.MaxZ = 1.0f; HRESULT hr = _d3d_device->SetViewport(&vp); if (FAILED(hr)) {