[Mesa-dev] [PATCH demos] opengles2/es2tri: add precision qualifier to the fragment shader
Tapani Pälli
tapani.palli at intel.com
Sun Jan 19 22:02:15 PST 2014
On 01/19/2014 06:34 PM, Emil Velikov wrote:
> The missing qualifier causes failure during the compilation stage.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73631
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> src/egl/opengles2/es2tri.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/egl/opengles2/es2tri.c b/src/egl/opengles2/es2tri.c
> index 6dcc1b8..349a576 100644
> --- a/src/egl/opengles2/es2tri.c
> +++ b/src/egl/opengles2/es2tri.c
> @@ -139,6 +139,7 @@ static void
> create_shaders(void)
> {
> static const char *fragShaderText =
> + "precision mediump float;\n"
> "varying vec4 v_color;\n"
> "void main() {\n"
> " gl_FragColor = v_color;\n"
yep, varying declaration was missing precision qualifier.
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
More information about the mesa-dev
mailing list