summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-04 01:02:06 +0100
committerMichael Bien <[email protected]>2011-02-04 01:02:06 +0100
commit18d1f903dc7cb436956e4f0c09cfb0ce0278bafa (patch)
treeb6d71dd9c51cf9e5bdd5b7524a6d8df4873c5881 /src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
parentdbe93d1e40a7bc9fbea7c5be3d59bf84e8a20ecb (diff)
- fixed bug in julia3d demo when epsilon is 0
- better device choice - cleanup
Diffstat (limited to 'src/com/jogamp/opencl/demos/julia3d/UserSceneController.java')
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/UserSceneController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java b/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
index fda54be..17b8956 100644
--- a/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
+++ b/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
@@ -135,7 +135,7 @@ public class UserSceneController {
model.setEnableShadow(model.getEnableShadow()==0 ? 1 : 0);
break;
case '1':
- model.setEpsilon(model.getEpsilon() * 0.75f);
+ model.setEpsilon(max(0.0001f, model.getEpsilon() * 0.75f));
break;
case '2':
model.setEpsilon(model.getEpsilon() * 1.f / 0.75f);