Use STBImage for TGA instead of internal.

This commit is contained in:
Steam Deck User 2022-12-30 12:37:03 -05:00
parent 055a2a68e4
commit a1610a77f2

View file

@ -106,7 +106,7 @@ byte *Image_LoadImage (const char *name, int *width, int *height)
q_snprintf (loadfilename, sizeof(loadfilename), "%s.tga", name);
COM_FOpenFile (loadfilename, &f, NULL);
if (f) {
return Image_LoadTGA (f, width, height);
return Image_LoadSTBI (f, width, height);
}
q_snprintf (loadfilename, sizeof(loadfilename), "%s.png", name);