glamor: Flip around conditionals in RepeatNone fixups.
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
e82c8c81df
commit
2c3e876844
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user