From b3305246a38e62d7eb596afbfc389fd11286f1ef Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 16 Apr 2015 18:18:49 +0200 Subject: [PATCH] Spline: Not that it should matter, but move the patch_div clamping down after the subsampling --- GPU/Common/SplineCommon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/Common/SplineCommon.cpp b/GPU/Common/SplineCommon.cpp index 7df0db85e5..1f3ea46629 100644 --- a/GPU/Common/SplineCommon.cpp +++ b/GPU/Common/SplineCommon.cpp @@ -307,15 +307,15 @@ static void SplinePatchFullQuality(u8 *&dest, u16 *indices, int &count, const Sp patch_div_t /= quality; } - if (patch_div_s < 2) patch_div_s = 2; - if (patch_div_t < 2) patch_div_t = 2; - // Downsample until it fits, in case crazy tesselation factors are sent. while ((patch_div_s + 1) * (patch_div_t + 1) > maxVertices) { patch_div_s /= 2; patch_div_t /= 2; } + if (patch_div_s < 2) patch_div_s = 2; + if (patch_div_t < 2) patch_div_t = 2; + // First compute all the vertices and put them in an array SimpleVertex *&vertices = (SimpleVertex*&)dest;