fix horse layered texture rendering for platforms without multitexture support
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user