From: Vinson Lee Date: Thu, 11 Mar 2010 08:10:26 +0000 (-0800) Subject: progs/fpglsl: Fix GLSL compilation failures on Mac OS X. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f7e06ddf646d6ec001a19a4b571595e50ba28b4;p=mesa.git progs/fpglsl: Fix GLSL compilation failures on Mac OS X. --- diff --git a/progs/fpglsl/for.glsl b/progs/fpglsl/for.glsl index 6aa03d6ef48..862ca8bd6cc 100644 --- a/progs/fpglsl/for.glsl +++ b/progs/fpglsl/for.glsl @@ -6,6 +6,6 @@ void main() { for (i = 0; i < KernelSizeInt; ++i) { sum.g += 0.25; } - sum.a = 1; + sum.a = 1.0; gl_FragColor = sum; } diff --git a/progs/fpglsl/forbreak.glsl b/progs/fpglsl/forbreak.glsl index 87669c65758..0b8d957cb04 100644 --- a/progs/fpglsl/forbreak.glsl +++ b/progs/fpglsl/forbreak.glsl @@ -8,6 +8,6 @@ void main() { if (i > 0) break; } - sum.a = 1; + sum.a = 1.0; gl_FragColor = sum; }