From 8ef4a61bf64fd8be5320d704cd6ec72a75800674 Mon Sep 17 00:00:00 2001 From: xebra Date: Tue, 9 Dec 2014 02:42:52 +0900 Subject: [PATCH] [spline/bezier]Spline subdivision counts should be 2 or higher. Related to #4234 #7111 --- GPU/Common/SplineCommon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GPU/Common/SplineCommon.cpp b/GPU/Common/SplineCommon.cpp index b7238947e3..b77886279c 100644 --- a/GPU/Common/SplineCommon.cpp +++ b/GPU/Common/SplineCommon.cpp @@ -184,11 +184,11 @@ void _SplinePatchFullQuality(u8 *&dest, int &count, const SplinePatchLocal &spa // JPCSP is wrong at least because their method results in square loco roco. int patch_div_s = (spatch.count_u - 3) * gstate.getPatchDivisionU(); int patch_div_t = (spatch.count_v - 3) * gstate.getPatchDivisionV(); - if (patch_div_s >= 4) patch_div_s /= quality; - if (patch_div_t >= 4) patch_div_t /= quality; + patch_div_s /= quality; + patch_div_t /= quality; - if (patch_div_s <= 0) patch_div_s = 1; - if (patch_div_t <= 0) patch_div_t = 1; + 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 = new SimpleVertex[(patch_div_s + 1) * (patch_div_t + 1)];