fix horse layered texture rendering for platforms without multitexture support

This commit is contained in:
qloak committed 2026-07-14 12:58:42 -07:00
1 parent a0e81976e6
commit 8e77eb70de
2 files changed
+34 -4

No files matched your search

+5 -1
View File
@@ -434,7 +434,11 @@ void Textures::bindTextureLayers(ResourceLocation *resource)
for( int i = 0; i < layers; i++ )
{
RenderManager.TextureBind(loadTexture(resource->getTexture(i)));
int texId = resource->getTexture(i);
if( texId != -1 )
{
RenderManager.TextureBind(loadTexture(texId));
}
}
}