summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-01-27 11:26:16 -0800
committerEric Anholt <eric@anholt.net>2016-01-29 11:56:27 -0800
commit73733cf18aad911bdbcf4e7bb1611dd21f495964 (patch)
treeb0803a5a443c0638b8463a9aaa12e39870fef714
parent868a380253d839f0fbb8d820f121c3510cbe6ec6 (diff)
glamor: Flip around conditionals in RepeatNone fixups.glamor-cleanups
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--glamor/glamor_render.c4
1 files 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"