mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-11 06:23:54 +00:00
chore: format everything
This commit is contained in:
@@ -529,11 +529,12 @@ void Textures::bindTextureLayers(ResourceLocation* resource) {
|
||||
|
||||
void Textures::bind(int id) {
|
||||
// 4jcraft: Classic GUI code still performs some raw glBindTexture calls, so
|
||||
// this path must always rebind rather than trusting lastBoundId to be in sync.
|
||||
// TODO(4jcraft): Long term, route all texture binds through one synchronized
|
||||
// path or invalidate lastBoundId at every raw glBindTexture call so this can
|
||||
// safely use cached binds again without breaking font/UI rendering.
|
||||
// if (id != lastBoundId)
|
||||
// this path must always rebind rather than trusting lastBoundId to be in
|
||||
// sync.
|
||||
// TODO(4jcraft): Long term, route all texture binds through one
|
||||
// synchronized path or invalidate lastBoundId at every raw glBindTexture
|
||||
// call so this can safely use cached binds again without breaking font/UI
|
||||
// rendering. if (id != lastBoundId)
|
||||
{
|
||||
if (id < 0) return;
|
||||
glBindTexture(GL_TEXTURE_2D, id);
|
||||
@@ -1190,7 +1191,6 @@ void Textures::reloadAll() {
|
||||
|
||||
skins->clearInvalidTexturePacks();
|
||||
|
||||
|
||||
// Recalculate fonts
|
||||
// Minecraft::GetInstance()->font->loadCharacterWidths();
|
||||
// Minecraft::GetInstance()->altFont->loadCharacterWidths();
|
||||
|
||||
Reference in New Issue
Block a user