aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-20 21:07:16 +0200
committerSven Gothel <[email protected]>2011-10-20 21:07:16 +0200
commit2e66f5345d22d8cbd5cc8be9a1db1073cb5ffd3c (patch)
treed1e1a4d37c96f41b7b619869d795dbe36921c718 /src/test
parent627083adaf1b38c17f42c72650c47103f17313ce (diff)
Using math functions in initializers fails on MacOSX - fixed
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp
index 6c9e0485a..22fb65e90 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp
@@ -40,7 +40,9 @@ vec2 oglFragCoord;
//const pre-calc
const float phi = 1.618;
-const float _IKVNORM_ = 1.0 / sqrt(pow(phi * (1.0 + phi), 2.0) + pow(phi * phi - 1.0, 2.0) + pow(1.0 + phi, 2.0));
+// Using math functions in initializers fails on MacOSX
+// const float _IKVNORM_ = 1.0 / sqrt(pow(phi * (1.0 + phi), 2.0) + pow(phi * phi - 1.0, 2.0) + pow(1.0 + phi, 2.0));
+const float _IKVNORM_ = 0.190989113930771;
const float _C1_ = phi * (1.0 + phi) * _IKVNORM_;
const float _C2_ = (phi * phi - 1.0) * _IKVNORM_;
const float _1C_ = (1.0 + phi) * _IKVNORM_;