aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java
index 097784f67..5f0c99a3d 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java
@@ -115,7 +115,7 @@ public class PointsDemoES1 extends PointsDemo {
for(int j=0; j<edge; j++) {
final float x = -3+j*0.7f;
final float y = -3+i*0.7f;
- final float p = (i*edge+j)*0.5f;
+ final float p = Math.max(0.000001f, (i*edge+j)*0.5f); // no zero point size!
// System.err.println("["+j+"/"+i+"]: "+x+"/"+y+": "+p);
vertices.putf(x); vertices.putf(y); vertices.putf( 0);
pointSizes[(i*edge+j)] = p;