got opengl working again using alternate threading/component model

This commit is contained in:
benfry
2004-12-19 22:39:29 +00:00
parent bd80a5ea54
commit 2175280acf
7 changed files with 160 additions and 76 deletions

View File

@@ -924,6 +924,14 @@ public class PGraphics extends PImage implements PMethods, PConstants {
vertex_end = vertex_count;
// don't try to draw if there are no vertices
// (fixes a bug in LINE_LOOP that re-adds a nonexistent vertex)
if (vertex_count == 0) {
shape = 0;
return;
}
// ------------------------------------------------------------------
// CREATE LINES