File U_glamor-Fix-missing-declaration-in-dash-vertex-shader.patch of Package xorg-x11-server.16787
From: Dr.-Ing. Dieter Jurzitza <dieter.jurzitza@t-online.de>
Date: Thu Feb 23 12:57:26 2017 -0500
Subject: [PATCH 1/2]glamor: Fix missing declaration in dash vertex shader
Patch-mainline: d8161aeb50891ae10c5656487ce8f982deed5f9f
References: boo#1025985
Signed-off-by: Max Staudt <mstaudt@suse.de>
Fixes a GLSL compilation error:
Failed to compile VS: 0:13(43): error: `pos' undeclared
0:13(14): error: operands to arithmetic operators must be numeric
0:13(13): error: operands to arithmetic operators must be numeric
Tested-by: Stefan Dirsch <sndirsch@suse.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
---
glamor/glamor_dash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/glamor/glamor_dash.c b/glamor/glamor_dash.c
index a6a11c1..7bbb801 100644
--- a/glamor/glamor_dash.c
+++ b/glamor/glamor_dash.c
@@ -32,6 +32,7 @@ static const char dash_vs_vars[] =
static const char dash_vs_exec[] =
" dash_offset = primitive.z / dash_length;\n"
+ " vec2_pos = vec2(0,0);\n"
GLAMOR_POS(gl_Position, primitive.xy);
static const char dash_fs_vars[] =