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