Library: Don't set texture index to 0 on failure

It should be kept as NE_NO_TEXTURE.
This commit is contained in:
Antonio Niño Díaz 2022-10-29 01:33:52 +01:00
parent f031319694
commit 68588dd2fa

View File

@ -304,7 +304,6 @@ int NE_MaterialTexLoad(NE_Material *tex, NE_TextureFormat fmt,
if (tex->texindex == NE_NO_TEXTURE)
{
NE_DebugPrint("No free slots");
tex->texindex = 0;
return 0;
}