Merge pull request #20353 from dragmz/gles2_redundant

Remove redundant uniform set call
This commit is contained in:
Rémi Verschelde 2018-07-22 16:20:23 +02:00 committed by GitHub
commit c579c48461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); 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) { if (dst_rect.size.width < 0) {
dst_rect.position.x += dst_rect.size.width; dst_rect.position.x += dst_rect.size.width;
dst_rect.size.width *= -1; dst_rect.size.width *= -1;