From 0b28868c5e19f67cd6f98fb1c7d36cc19d5a0e11 Mon Sep 17 00:00:00 2001 From: benfry Date: Sat, 21 Feb 2009 02:20:26 +0000 Subject: [PATCH] fix problem with beginRaw() and P3D/OPENGL (bug #1099, bug #1144) --- core/src/processing/core/PGraphics3D.java | 30 ++++++++++++++--------- core/todo.txt | 3 +++ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/core/src/processing/core/PGraphics3D.java b/core/src/processing/core/PGraphics3D.java index 3f4c6acb0..b5969b0a4 100644 --- a/core/src/processing/core/PGraphics3D.java +++ b/core/src/processing/core/PGraphics3D.java @@ -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; } diff --git a/core/todo.txt b/core/todo.txt index 1ba6a741b..2b33ef3fa 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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