mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Spline: Not that it should matter, but move the patch_div clamping down after the subsampling
This commit is contained in:
1 parent
6bc9a525f8
commit
b3305246a3
1 file changed
+3
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user