Skip to content

Commit

Permalink
Merge pull request godotengine#103017 from kleonc/canvas_item_debug_r…
Browse files Browse the repository at this point in the history
…edraw_fix_rects_in_rd

Fix debug CanvasItem redraw rects in RD renderer
  • Loading branch information
Repiteo committed Feb 19, 2025
2 parents e91493f + 2bb6ad5 commit e567f49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2913,12 +2913,13 @@ void RendererCanvasRenderRD::_record_item_commands(const Item *p_item, RenderTar
r_current_batch->tex_info = tex_info;
}

_update_transform_2d_to_mat2x3(base_transform, world);
InstanceData *instance_data = new_instance_data(world, lights, base_flags, r_index, uniforms_ofs, tex_info);

Rect2 src_rect;
Rect2 dst_rect;

dst_rect = Rect2(Vector2(), p_item->rect.size);
dst_rect = p_item->rect;
if (dst_rect.size.width < 0) {
dst_rect.position.x += dst_rect.size.width;
dst_rect.size.width *= -1;
Expand Down

0 comments on commit e567f49

Please sign in to comment.