mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
[spline/bezier]Fix sometimes spline disappear in medium quality. Reported on #7111.
This commit is contained in:
1 parent
2d59a15ade
commit
f6b937fe59
1 file changed
+2
@@ -184,6 +184,8 @@ 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;
|
||||
|
||||
if (patch_div_s <= 0) patch_div_s = 1;
|
||||
if (patch_div_t <= 0) patch_div_t = 1;
|
||||
|
||||
Reference in new issue
Block a user