Fix LCD batching flag for StyleBoxTexture
This commit is contained in:
parent
a3e84cc2af
commit
dc67bdaab4
1 changed files with 3 additions and 0 deletions
|
|
@ -2542,6 +2542,7 @@ void RendererCanvasRenderRD::_record_item_commands(const Item *p_item, RenderTar
|
|||
r_current_batch->render_primitive = RD::RENDER_PRIMITIVE_TRIANGLES;
|
||||
r_current_batch->flags = 0;
|
||||
r_current_batch->use_msdf = false;
|
||||
r_current_batch->use_lcd = false;
|
||||
}
|
||||
|
||||
TextureState tex_state(np->texture, texture_filter, texture_repeat, false, use_linear_colors);
|
||||
|
|
@ -2618,6 +2619,7 @@ void RendererCanvasRenderRD::_record_item_commands(const Item *p_item, RenderTar
|
|||
r_current_batch->command = c;
|
||||
r_current_batch->flags = 0;
|
||||
r_current_batch->use_msdf = false;
|
||||
r_current_batch->use_lcd = false;
|
||||
|
||||
TextureState tex_state(polygon->texture, texture_filter, texture_repeat, false, use_linear_colors);
|
||||
TextureInfo *tex_info = texture_info_map.getptr(tex_state);
|
||||
|
|
@ -2745,6 +2747,7 @@ void RendererCanvasRenderRD::_record_item_commands(const Item *p_item, RenderTar
|
|||
r_current_batch->has_blend = false;
|
||||
r_current_batch->flags = 0;
|
||||
r_current_batch->use_msdf = false;
|
||||
r_current_batch->use_lcd = false;
|
||||
|
||||
InstanceData *instance_data = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue