diff options
author | Nathan Warden <nathan@nathanwarden.com> | 2017-11-10 19:38:11 -0500 |
---|---|---|
committer | Nathan Warden <nathan@nathanwarden.com> | 2017-11-11 07:28:48 -0500 |
commit | 6adaf8f47a9acbb8d56fa60e47a1106e5646c299 (patch) | |
tree | 3ff11dbac4fe61ff2c7f88d28b6e107eb46be53f /drivers | |
parent | 19b1ff0fc5f7acce23176ad6c8752604357472f0 (diff) |
Fixed a bug where clamp_uv was clamping one pixel short, stretching the last pixels.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/shaders/canvas.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl index 731d6968ce..eefa15213c 100644 --- a/drivers/gles3/shaders/canvas.glsl +++ b/drivers/gles3/shaders/canvas.glsl @@ -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 |