mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 02:33:36 +00:00
fix(gui): always rebind textures for java font rendering
This commit is contained in:
parent
c60a71581d
commit
8dfd9e5044
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue