[PATCH xserver 19/19] glamor: Flip around conditionals in RepeatNone fixups.

Eric Anholt eric at anholt.net
Wed Jan 27 17:56:48 PST 2016


Signed-off-by: Eric Anholt <eric at anholt.net>
---
 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 da45920..73ac831 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"
-- 
2.6.4



More information about the xorg-devel mailing list