batch 2.3 enabling back optimizations
This commit is contained in:
1 parent
b7ac84ca79
commit
08ed9861b9
3 files changed
+5
-3
No files matched your search
@@ -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