1 From 66dab98c3f42eb70a4c6761a8694e374b8578e99 Mon Sep 17 00:00:00 2001
2 From: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
3 Date: Thu, 8 May 2014 09:27:04 -0700
4 Subject: [PATCH] Fix to match the uniform precision qualifiers in vertex and
7 When the vertex and fragment shaders are linked together, then they will
8 share a single global uniform name space. Hence, types and precisions of
9 uniforms with the same name must match across all shaders that are linked
10 into a single executable.
12 As per GLSL_ES_Specification_3.00.3.pdf
13 Page 124 12.3 Numeric Precision
14 The fragment language has no default precision qualifier for floating point types.
15 Hence for float, floating point vector and matrix variable declarations, either
16 the declaration must include a precision qualifier or the default float
17 precision must have been previously declared.
19 Upstream-Status: Submitted [https://bugs.webkit.org/show_bug.cgi?id=124653#c9]
21 Change-Id: I4eb3363b3bca8bc3c839212ec7c966201a3e65e2
22 Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
24 Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
27 diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp
28 index f4b9a7e..7e991bf 100644
29 --- a/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp
30 +++ b/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp
31 @@ -208,7 +208,7 @@ static const char* fragmentTemplate =
32 ANTIALIASING_TEX_COORD_DIRECTIVE
35 - precision mediump float;
36 + precision highp float;
37 uniform SamplerType s_sampler;
38 uniform sampler2D s_contentTexture;
39 uniform float u_opacity;