summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-16 03:39:39 +0200
committerSven Gothel <[email protected]>2013-07-16 03:39:39 +0200
commit4ceb2dfa8a10e531ef9fd4ace2fd884f4ef42925 (patch)
tree5377d16bb93aa062474112b7627a8536a34a412a /src
parent63124ed59c23836039285e09b45e5cde0ecf6c43 (diff)
Fix PointsDemoES1: No zero point size allowed
Diffstat (limited to 'src')
-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;