Current Mesa requires that the precision qualifier on uniforms matches
between stages, even if (as in this case) the uniform isn't used in
one of the stages.

Signed-off-by: Eric Anholt <e...@anholt.net>
---
 glamor/glamor_program.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c
index dec116c7558f..23c102bc30bc 100644
--- a/glamor/glamor_program.c
+++ b/glamor/glamor_program.c
@@ -122,8 +122,7 @@ static glamor_location_var location_vars[] = {
         .vs_vars = ("uniform vec2 fill_offset;\n"
                     "uniform vec2 fill_size_inv;\n"
                     "varying vec2 fill_pos;\n"),
-        .fs_vars = ("uniform vec2 fill_size_inv;\n"
-                    "varying vec2 fill_pos;\n")
+        .fs_vars = ("varying vec2 fill_pos;\n")
     },
     {
         .location = glamor_program_location_font,
-- 
2.9.3

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to