Signed-off-by: Eric Anholt <e...@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

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

Reply via email to