fix horse layered texture rendering for platforms without multitexture support

This commit is contained in:
2026-07-14 12:58:42 -07:00
parent a0e81976e6
commit 8e77eb70de
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));
}
}
}