fix(linux): localise chunk transforms and guard optional iggy paths

This commit is contained in:
MatthewBeshay
2026-03-28 21:09:35 +11:00
committed by Tropical
parent dc8c0b04c0
commit 31acc46308
8 changed files with 71 additions and 40 deletions

View File

@@ -543,6 +543,9 @@ 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)
{
if (id < 0) return;