Fixed a bug where clamp_uv was clamping one pixel short, stretching the last pixels.

This commit is contained in:
Nathan Warden 2017-11-10 19:38:11 -05:00
parent 19b1ff0fc5
commit 6adaf8f47a

View file

@ -382,7 +382,7 @@ void main() {
if (clip_rect_uv) {
vec2 half_texpixel = color_texpixel_size * 0.5;
uv = clamp(uv,src_rect.xy+half_texpixel,src_rect.xy+abs(src_rect.zw)-color_texpixel_size);
uv = clamp(uv,src_rect.xy,src_rect.xy+abs(src_rect.zw));
}
#endif