Fix Gradient, Color Picker BG, Fix CanvasItem::draw_texture_rect p_tile

This commit is contained in:
Nathan Franke 2021-04-13 23:30:23 -05:00
parent f860ee3091
commit 051234e84e
No known key found for this signature in database
GPG key ID: 92164DCCF3B1F723
6 changed files with 10 additions and 33 deletions

View file

@ -480,6 +480,10 @@ void RendererCanvasRenderRD::_render_item(RD::DrawListID p_draw_list, RID p_rend
case Item::Command::TYPE_RECT: {
const Item::CommandRect *rect = static_cast<const Item::CommandRect *>(c);
if (rect->flags & CANVAS_RECT_TILE) {
current_repeat = RenderingServer::CanvasItemTextureRepeat::CANVAS_ITEM_TEXTURE_REPEAT_ENABLED;
}
//bind pipeline
{
RID pipeline = pipeline_variants->variants[light_mode][PIPELINE_VARIANT_QUAD].get_render_pipeline(RD::INVALID_ID, p_framebuffer_format);