mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-01 21:56:17 +00:00
Spline: Fix an unrelated kind-of-bug
This commit is contained in:
parent
6587f4de8f
commit
68893c763f
@ -382,8 +382,8 @@ static void SplinePatchFullQuality(u8 *&dest, u16 *indices, int &count, const Sp
|
||||
spline_n_4(iv, v, knot_v, v_weights);
|
||||
|
||||
// Handle degenerate patches. without this, spatch.points[] may read outside the number of initialized points.
|
||||
int patch_w = std::min(spatch.count_u, 4);
|
||||
int patch_h = std::min(spatch.count_v, 4);
|
||||
int patch_w = std::min(spatch.count_u - iu, 4);
|
||||
int patch_h = std::min(spatch.count_v - iv, 4);
|
||||
|
||||
for (int ii = 0; ii < patch_w; ++ii) {
|
||||
for (int jj = 0; jj < patch_h; ++jj) {
|
||||
|
Loading…
Reference in New Issue
Block a user