got opengl working again using alternate threading/component model

This commit is contained in:
benfry
2004-12-19 22:39:29 +00:00
parent 63f5b04286
commit 4581df6ef6
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