From d1500c03c054713c17f97171c0e1b2500c48b135 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 8 Mar 2011 12:53:41 +0000 Subject: [PATCH] cogl-shader-boilerplate: Specify default precision earlier In 9ff04e8a99 the builtin uniforms were moved to the common shader boilerplate. However the common boilerplate is positioned before the default precision specifier on GLES2 so it would fail to compile because the uniforms end up with no precision in the fragment shader. This patch just moves the precision specifier to above the common boilerplate. --- clutter/cogl/cogl/cogl-shader-boilerplate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-shader-boilerplate.h b/clutter/cogl/cogl/cogl-shader-boilerplate.h index db7a6b3c1..3a23de1c9 100644 --- a/clutter/cogl/cogl/cogl-shader-boilerplate.h +++ b/clutter/cogl/cogl/cogl-shader-boilerplate.h @@ -106,10 +106,10 @@ "attribute vec3 cogl_normal_in;\n" #define _COGL_FRAGMENT_SHADER_BOILERPLATE \ - _COGL_COMMON_SHADER_BOILERPLATE \ "#if __VERSION__ == 100\n" \ "precision highp float;\n" \ "#endif\n" \ + _COGL_COMMON_SHADER_BOILERPLATE \ "\n" \ "varying vec4 _cogl_color;\n" \ "\n" \