Added missing offset in partitionRawIndices()

This commit is contained in:
codeanticode
2012-07-05 20:04:38 +00:00
parent 370fbd6637
commit f28d246362
2 changed files with 4 additions and 4 deletions

View File

@@ -10270,9 +10270,9 @@ public class PGraphicsOpenGL extends PGraphics {
ArrayList<Integer> inDupList = new ArrayList<Integer>(inDupSet);
Collections.sort(inDupList);
for (int i = inInd0; i <= inInd1; i++) {
int ri = tess.polyIndices[i];
int ri = tess.polyIndices[offset + i];
if (ri < 0) {
tess.polyIndices[i] = (short) (inMaxRel + 1 + inDupList.indexOf(ri));
tess.polyIndices[offset + i] = (short) (inMaxRel + 1 + inDupList.indexOf(ri));
}
}