fix(gui): always rebind textures for java font rendering

This commit is contained in:
MatthewBeshay 2026-03-28 18:57:19 +11:00 committed by Tropical
parent c60a71581d
commit 8dfd9e5044

View file

@ -541,11 +541,11 @@ void Textures::bindTextureLayers(ResourceLocation* resource) {
}
void Textures::bind(int id) {
if (id != lastBoundId)
// Classic GUI code still performs some raw glBindTexture calls, so this
// path must always rebind rather than trusting lastBoundId to be in sync.
{
if (id < 0) return;
glBindTexture(GL_TEXTURE_2D, id);
lastBoundId = id;
}
}