Browse Source

Update textures.c

pull/1654/head
Ray 3 years ago
parent
commit
1cc838cef4
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/textures.c

+ 6
- 6
src/textures.c View File

@ -345,7 +345,7 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i
#endif
}
#if defined(SUPPORT_FILEFORMAT_HDR)
else if (TextIsEqual(fileExtLower, "hdr"))
else if (TextIsEqual(fileExtLower, ".hdr"))
{
#if defined(STBI_REQUIRED)
if (fileData != NULL)
@ -368,19 +368,19 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i
}
#endif
#if defined(SUPPORT_FILEFORMAT_DDS)
else if (TextIsEqual(fileExtLower, "dds")) image = LoadDDS(fileData, dataSize);
else if (TextIsEqual(fileExtLower, ".dds")) image = LoadDDS(fileData, dataSize);
#endif
#if defined(SUPPORT_FILEFORMAT_PKM)
else if (TextIsEqual(fileExtLower, "pkm")) image = LoadPKM(fileData, dataSize);
else if (TextIsEqual(fileExtLower, ".pkm")) image = LoadPKM(fileData, dataSize);
#endif
#if defined(SUPPORT_FILEFORMAT_KTX)
else if (TextIsEqual(fileExtLower, "ktx")) image = LoadKTX(fileData, dataSize);
else if (TextIsEqual(fileExtLower, ".ktx")) image = LoadKTX(fileData, dataSize);
#endif
#if defined(SUPPORT_FILEFORMAT_PVR)
else if (TextIsEqual(fileExtLower, "pvr")) image = LoadPVR(fileData, dataSize);
else if (TextIsEqual(fileExtLower, ".pvr")) image = LoadPVR(fileData, dataSize);
#endif
#if defined(SUPPORT_FILEFORMAT_ASTC)
else if (TextIsEqual(fileExtLower, "astc")) image = LoadASTC(fileData, dataSize);
else if (TextIsEqual(fileExtLower, ".astc")) image = LoadASTC(fileData, dataSize);
#endif
else TRACELOG(LOG_WARNING, "IMAGE: File format not supported");

Loading…
Cancel
Save