summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNathan Warden <nathan@nathanwarden.com>2017-11-10 19:38:11 -0500
committerNathan Warden <nathan@nathanwarden.com>2017-11-11 07:28:48 -0500
commit6adaf8f47a9acbb8d56fa60e47a1106e5646c299 (patch)
tree3ff11dbac4fe61ff2c7f88d28b6e107eb46be53f /drivers
parent19b1ff0fc5f7acce23176ad6c8752604357472f0 (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.glsl2
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