batch 2.3 enabling back optimizations

This commit is contained in:
JuiceyDev
2026-03-27 11:00:36 +01:00
committed by Tropical
parent b7ac84ca79
commit 08ed9861b9
3 changed files with 5 additions and 3 deletions

View File

@@ -541,11 +541,11 @@ void Textures::bindTextureLayers(ResourceLocation* resource) {
}
void Textures::bind(int id) {
// if (id != lastBoundId)
if (id != lastBoundId)
{
if (id < 0) return;
glBindTexture(GL_TEXTURE_2D, id);
// lastBoundId = id;
lastBoundId = id;
}
}