diff options
| author | Ray <[email protected]> | 2017-12-11 11:55:02 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-12-11 11:55:02 +0100 |
| commit | a6f9cc5629841b7adf3d9ff21eaa2aaabb3e4bc1 (patch) | |
| tree | 43c035d81630b22f51e82bad450213a51c61f6d7 /src/textures.c | |
| parent | 3e1d6859db03ba379dda62281bd3867b3d43d980 (diff) | |
| download | raylib-a6f9cc5629841b7adf3d9ff21eaa2aaabb3e4bc1.tar.gz raylib-a6f9cc5629841b7adf3d9ff21eaa2aaabb3e4bc1.zip | |
Remove rres support
Let the user choose if using rres external library
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/textures.c b/src/textures.c index 090de24b..6bd306f4 100644 --- a/src/textures.c +++ b/src/textures.c @@ -167,18 +167,7 @@ Image LoadImage(const char *fileName) { Image image = { 0 }; - if (IsFileExtension(fileName, ".rres")) - { - RRES rres = LoadResource(fileName, 0); - - // NOTE: Parameters for RRES_TYPE_IMAGE are: width, height, format, mipmaps - - if (rres[0].type == RRES_TYPE_IMAGE) image = LoadImagePro(rres[0].data, rres[0].param1, rres[0].param2, rres[0].param3); - else TraceLog(LOG_WARNING, "[%s] Resource file does not contain image data", fileName); - - UnloadResource(rres); - } - else if ((IsFileExtension(fileName, ".png")) + if ((IsFileExtension(fileName, ".png")) #if defined(SUPPORT_FILEFORMAT_BMP) || (IsFileExtension(fileName, ".bmp")) #endif |
