diff options
| author | Ray <[email protected]> | 2021-03-17 19:37:03 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-17 19:37:03 +0100 |
| commit | 1cc838cef493881fb5f66c95c712ba1e135fdd1c (patch) | |
| tree | bf79c63e996798394e0bb6258d3208a6645b7e97 /src | |
| parent | bae423be4110a11eb97c64b064a8cbcdfd5306eb (diff) | |
| download | raylib-1cc838cef493881fb5f66c95c712ba1e135fdd1c.tar.gz raylib-1cc838cef493881fb5f66c95c712ba1e135fdd1c.zip | |
Update textures.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textures.c b/src/textures.c index 1de11d80..b08d99cd 100644 --- a/src/textures.c +++ b/src/textures.c @@ -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"); |
