stroked lines drawing on top of everything else in P3D (bug #1032)

This commit is contained in:
benfry
2008-11-24 05:26:04 +00:00
parent 5bee678e27
commit 369684283a
@@ -384,7 +384,7 @@ public class PSmoothTriangle implements PConstants {
if (rx > parent.width1) rx = parent.width1;
}
// System.out.println("P3D interp uv " + interpUV + " " +
// System.out.println("P3D interp uv " + interpUV + " " +
// vertices[2][U] + " " + vertices[2][V]);
interpX = false;
@@ -394,8 +394,8 @@ public class PSmoothTriangle implements PConstants {
// added == because things on same plane weren't replacing each other
// makes for strangeness in 3D [ewj: yup!], but totally necessary for 2D
if (noDepthTest || (sp[Z] < zbuffer[offset+x])) {
//if (noDepthTest || (sp[Z] <= zbuffer[offset+x])) {
//if (noDepthTest || (sp[Z] < zbuffer[offset+x])) {
if (noDepthTest || (sp[Z] <= zbuffer[offset+x])) {
//if (true) {
// map texture based on U, V coords in sp[U] and sp[V]