Skip to content

Fix MSDF batching flag for StyleBoxTexture#113924

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
mxtherfxcker:patch-2
Dec 12, 2025
Merged

Fix MSDF batching flag for StyleBoxTexture#113924
Repiteo merged 1 commit intogodotengine:masterfrom
mxtherfxcker:patch-2

Conversation

@mxtherfxcker
Copy link
Contributor

Description

Fixing an error where ItemLists using fonts with the active distance_field parameter change the display of StyleBoxTextures

Problem

The use_msdf flag in the batch state structure is not reset when switching from MSDF commands (text) to non-MSDF commands (nine-patch, polygon, mesh). This leads to incorrect shader usage.

Related Issues

Fixes #113900

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Repiteo Repiteo merged commit c180b5e into godotengine:master Dec 12, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 12, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ItemLists using fonts with distance_field active modifies the display of StyleBoxTextures

5 participants