From 73733cf18aad911bdbcf4e7bb1611dd21f495964 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 27 Jan 2016 11:26:16 -0800 Subject: glamor: Flip around conditionals in RepeatNone fixups. Signed-off-by: Eric Anholt --- glamor/glamor_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index da4592016..73ac831ee 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -110,8 +110,8 @@ glamor_create_composite_fs(struct shader_key *key) " if (repeat >= RepeatFix) {\n" " tex = rel_tex_coord(tex, wh, repeat);\n" " if (repeat == RepeatFix + RepeatNone) {\n" - " if (!(tex.x >= 0.0 && tex.x < 1.0 && \n" - " tex.y >= 0.0 && tex.y < 1.0))\n" + " if (tex.x < 0.0 || tex.x >= 1.0 || \n" + " tex.y < 0.0 || tex.y >= 1.0)\n" " return vec4(0.0, 0.0, 0.0, 0.0);\n" " tex = (fract(tex) / wh.xy);\n" " }\n" -- cgit v1.2.3