mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 22:17:08 +00:00
Try to fix glitch reported in #7457 in PHOTOKANO
This commit is contained in:
parent
96ecb9a160
commit
2290a6165e
@ -237,6 +237,8 @@ void IndexGenerator::TranslatePoints(int numInds, const u16 *_inds, int indexOff
|
||||
void IndexGenerator::TranslateList(int numInds, const u8 *inds, int indexOffset) {
|
||||
indexOffset = index_ - indexOffset;
|
||||
u16 *outInds = inds_;
|
||||
int numTris = numInds / 3; // Round to whole triangles
|
||||
numInds = numTris * 3;
|
||||
for (int i = 0; i < numInds; i += 3) {
|
||||
*outInds++ = indexOffset + inds[i];
|
||||
*outInds++ = indexOffset + inds[i + 1];
|
||||
@ -285,6 +287,8 @@ void IndexGenerator::TranslateList(int numInds, const u16 *_inds, int indexOffse
|
||||
const u16_le *inds = (u16_le*)_inds;
|
||||
indexOffset = index_ - indexOffset;
|
||||
u16 *outInds = inds_;
|
||||
int numTris = numInds / 3; // Round to whole triangles
|
||||
numInds = numTris * 3;
|
||||
for (int i = 0; i < numInds; i += 3) {
|
||||
*outInds++ = indexOffset + inds[i];
|
||||
*outInds++ = indexOffset + inds[i + 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user