Mesa (mesa_7_7_branch): progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Thu Dec 3 11:20:00 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 832593772dac9b83db1ed44c8654352978e756eb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=832593772dac9b83db1ed44c8654352978e756eb

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Nov 17 23:15:25 2009 -0800

progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
(cherry picked from commit 04442841fb7e9138eb50ff692952ad7e8c3877d8)

---

 progs/glsl/CH18-mandel.frag |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/glsl/CH18-mandel.frag b/progs/glsl/CH18-mandel.frag
index a472d81..a972d68 100644
--- a/progs/glsl/CH18-mandel.frag
+++ b/progs/glsl/CH18-mandel.frag
@@ -31,7 +31,7 @@ void main()
     float iter;
 
 //    for (iter = 0.0; iter < MaxIterations && r2 < 4.0; ++iter)
-    for (iter = 0.0; iter < 12 && r2 < 4.0; ++iter)
+    for (iter = 0.0; iter < 12.0 && r2 < 4.0; ++iter)
     {
         float tempreal = real;
 



More information about the mesa-commit mailing list