From bc0a694ec2ee7e31476983249da01bedbb2a1527 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 3 Nov 2015 00:14:53 -0800 Subject: [PATCH] Unbreak depth range test reporting. Was broken in 9e18fb7e908a61f3a9b3637ff0fd92ee10ac298b. --- GPU/GLES/StateMapping.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index dc7b2d6eb0..b0e1512556 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -902,14 +902,14 @@ void TransformDrawEngine::ApplyDrawState(int prim) { glstate.depthRange.set(depthRangeMin * (1.0f / 65535.0f), depthRangeMax * (1.0f / 65535.0f)); #ifndef MOBILE_DEVICE - float minz = gstate.getDepthRangeMin() * (1.0f / 65535.0f); - float maxz = gstate.getDepthRangeMax() * (1.0f / 65535.0f); + float minz = gstate.getDepthRangeMin(); + float maxz = gstate.getDepthRangeMax(); if ((minz > depthRangeMin && minz > depthRangeMax) || (maxz < depthRangeMin && maxz < depthRangeMax)) { - WARN_LOG_REPORT_ONCE(minmaxz, G3D, "Unsupported depth range test - depth range: %f-%f, test: %f-%f", depthRangeMin, depthRangeMax, minz, maxz); + WARN_LOG_REPORT_ONCE(minmaxz, G3D, "Unsupported depth range in test - depth range: %f-%f, test: %f-%f", depthRangeMin, depthRangeMax, minz, maxz); } else if ((gstate.clipEnable & 1) == 0) { // TODO: Need to test whether clipEnable should even affect depth or not. if ((minz < depthRangeMin && minz < depthRangeMax) || (maxz > depthRangeMin && maxz > depthRangeMax)) { - WARN_LOG_REPORT_ONCE(znoclip, G3D, "Unsupported depth range test without clipping - depth range: %f-%f, test: %f-%f", depthRangeMin, depthRangeMax, minz, maxz); + WARN_LOG_REPORT_ONCE(znoclip, G3D, "Unsupported depth range in test without clipping - depth range: %f-%f, test: %f-%f", depthRangeMin, depthRangeMax, minz, maxz); } } #endif