summaryrefslogtreecommitdiff
path: root/drivers/gles2
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-22 16:20:23 +0200
committerGitHub <noreply@github.com>2018-07-22 16:20:23 +0200
commitc579c48461c5f6d3d98c1db4e116c5176fc69ba4 (patch)
treecb0bf5d470a41ac73713f7839f4f894e9e72dafe /drivers/gles2
parentc02f639aa5dbb1a9fb251bb996151ae4771a7178 (diff)
parent00180ef264b051e61f06c67402e356855fc7bd6d (diff)
Merge pull request #20353 from dragmz/gles2_redundant
Remove redundant uniform set call
Diffstat (limited to 'drivers/gles2')
-rw-r--r--drivers/gles2/rasterizer_canvas_gles2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gles2/rasterizer_canvas_gles2.cpp b/drivers/gles2/rasterizer_canvas_gles2.cpp
index daa421d45c..ea52153285 100644
--- a/drivers/gles2/rasterizer_canvas_gles2.cpp
+++ b/drivers/gles2/rasterizer_canvas_gles2.cpp
@@ -409,8 +409,6 @@ void RasterizerCanvasGLES2::_canvas_item_render_commands(Item *p_item, Item *cur
Rect2 dst_rect = Rect2(r->rect.position, r->rect.size);
- state.canvas_shader.set_uniform(CanvasShaderGLES2::COLOR_TEXPIXEL_SIZE, texpixel_size);
-
if (dst_rect.size.width < 0) {
dst_rect.position.x += dst_rect.size.width;
dst_rect.size.width *= -1;