Skip to content

Commit

Permalink
disable experimental depth sorting code for raw triangles, fix #2404
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Mar 30, 2014
1 parent 9e40456 commit 4af6300
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/src/processing/opengl/PGraphicsOpenGL.java
Expand Up @@ -2610,14 +2610,15 @@ void rawPolys() {
raw.noStroke();
raw.beginShape(TRIANGLES);

sortTriangles();

//sortTriangles();

float[] vertices = tessGeo.polyVertices;
int[] color = tessGeo.polyColors;
float[] uv = tessGeo.polyTexCoords;
//short[] indices = tessGeo.polyIndices; // unused [fry]

short[] indices = tessGeo.polyIndices; // unused [fry]

/*
sortTriangles();
for (int i = 0; i < sortedTriangleCount; i++) {
Triangle tri = sortedPolyTriangles[i];
Expand Down Expand Up @@ -2697,9 +2698,9 @@ void rawPolys() {
}
}
*/


/*
for (int i = 0; i < texCache.size; i++) {
PImage textureImage = texCache.getTextureImage(i);

Expand Down Expand Up @@ -2791,7 +2792,7 @@ void rawPolys() {
}
}
}
*/


raw.endShape();
}
Expand Down

0 comments on commit 4af6300

Please sign in to comment.