fix horse layered texture rendering for platforms without multitexture support

This commit is contained in:
2026-07-14 12:57:08 -07:00
parent 0eea592b86
commit b4ed4a1a92
2 changed files with 34 additions and 4 deletions
+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));
}
}
}