mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-06 03:12:28 +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) {
|
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;
|
if (id < 0) return;
|
||||||
glBindTexture(GL_TEXTURE_2D, id);
|
glBindTexture(GL_TEXTURE_2D, id);
|
||||||
lastBoundId = id;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue