mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-13 01:24:32 +00:00
batch 2.3 enabling back optimizations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user