This commit is contained in:
MarcEricMartel
2023-11-20 15:20:20 -05:00
parent 02fafea45c
commit a91e5dcf5e
2 changed files with 6 additions and 6 deletions

View File

@@ -69,9 +69,10 @@ bool TextureAtlas::Generate(int textureSize, bool mipmap) {
ilOriginFunc(IL_ORIGIN_LOWER_LEFT);
ilEnable(IL_ORIGIN_SET);
ilEnable(IL_ALPHA);
ilEnable(IL_BLIT_BLEND);
if (!ilLoad(IL_PNG,(const ILstring)it->first.c_str()))
if (!ilLoadImage((const ILstring)it->first.c_str()))
return false;
if (!ilConvertImage(IL_RGBA, IL_UNSIGNED_BYTE))