From f7987017a02d249f92a2ba69ddc6c98ad86abfc3 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Tue, 23 Aug 2016 10:08:13 +0200 Subject: [PATCH] PixelShaderManager: Use signed integers for the depth range parameters. --- Source/Core/VideoCommon/PixelShaderManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index b77f5e31a2..cb626bc31d 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -94,8 +94,8 @@ void PixelShaderManager::SetConstants() if (s_bViewPortChanged) { - constants.zbias[1][0] = (u32)xfmem.viewport.farZ; - constants.zbias[1][1] = (u32)xfmem.viewport.zRange; + constants.zbias[1][0] = (s32)xfmem.viewport.farZ; + constants.zbias[1][1] = (s32)xfmem.viewport.zRange; dirty = true; s_bViewPortChanged = false; }