From ed16e42ca89eafc0ad5908cf13779e5d2dfacff8 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 17 Nov 2013 14:49:51 -0800 Subject: [PATCH] Cleanup, don't even need z here. --- GPU/GLES/TransformPipeline.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index fec208f2e7..1fd06ac6cd 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -846,7 +846,7 @@ bool TransformDrawEngine::TestBoundingBox(void* control_points, int vertexCount, // TODO: Probably move this to common code (with normalization?) -static inline Vec3f ClipToScreenTemp(const Vec4f& coords) +static inline Vec3f ClipToScreen(const Vec4f& coords) { // TODO: Check for invalid parameters (x2 < x1, etc) float vpx1 = getFloat24(gstate.viewportx1); @@ -860,11 +860,6 @@ static inline Vec3f ClipToScreenTemp(const Vec4f& coords) float rety = coords.y * vpy1 / coords.w + vpy2; float retz = coords.z * vpz1 / coords.w + vpz2; - if (gstate.clipEnable & 0x1) { - if (retz < 0.f) retz = 0.f; - if (retz > 65535.f) retz = 65535.f; - } - // 16 = 0xFFFF / 4095.9375 return Vec3f(retx * 16, rety * 16, retz); } @@ -940,7 +935,7 @@ bool TransformDrawEngine::GetCurrentSimpleVertices(int count, std::vector