fix problem with beginRaw() and P3D/OPENGL (bug #1099, bug #1144)

This commit is contained in:
benfry
2009-02-21 02:20:26 +00:00
parent 78ce5023b1
commit 0b28868c5e
2 changed files with 21 additions and 12 deletions
+18 -12
View File
@@ -623,24 +623,30 @@ public class PGraphics3D extends PGraphics {
// if true, the shapes will be rendered on endDraw
if (!hints[ENABLE_DEPTH_SORT]) {
if (fill) {
renderTriangles(0, triangleCount);
if (raw != null) {
rawTriangles(0, triangleCount);
if (triangleCount > 0) {
renderTriangles(0, triangleCount);
if (raw != null) {
rawTriangles(0, triangleCount);
}
triangleCount = 0;
}
triangleCount = 0;
}
if (stroke) {
renderPoints(0, pointCount);
if (raw != null) {
rawPoints(0, pointCount);
if (pointCount > 0) {
renderPoints(0, pointCount);
if (raw != null) {
rawPoints(0, pointCount);
}
pointCount = 0;
}
pointCount = 0;
renderLines(0, lineCount);
if (raw != null) {
rawLines(0, lineCount);
if (lineCount > 0) {
renderLines(0, lineCount);
if (raw != null) {
rawLines(0, lineCount);
}
lineCount = 0;
}
lineCount = 0;
}
pathCount = 0;
}
+3
View File
@@ -22,6 +22,9 @@ X http://dev.processing.org/bugs/show_bug.cgi?id=1110
X nextPage() not working properly with PDF as the renderer
X http://dev.processing.org/bugs/show_bug.cgi?id=1131
X save styles when nextPage() is called
X beginRaw() broken (no DXF, etc working)
X http://dev.processing.org/bugs/show_bug.cgi?id=1099
X http://dev.processing.org/bugs/show_bug.cgi?id=1144
invalid/wontfix/dupe
X Processing will not start with non-standard disk partitioning on OS X