diff options
| author | Ray <[email protected]> | 2023-09-04 18:43:03 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-04 18:43:03 +0200 |
| commit | 8a82e17a794ac5ac8c073f9a96cf5e4ae0c1ebf2 (patch) | |
| tree | 01e523353b5d1ce41007bbb9b41b85e4fbbf20ad /src | |
| parent | c147ab51c92abb09af5a5bc93759c7d360b8e1be (diff) | |
| download | raylib-8a82e17a794ac5ac8c073f9a96cf5e4ae0c1ebf2.tar.gz raylib-8a82e17a794ac5ac8c073f9a96cf5e4ae0c1ebf2.zip | |
Update rtextures.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index 3092071f..4e2fdbd9 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -324,6 +324,7 @@ Image LoadImageSvg(const char *fileNameOrString, int width, int height) Image image = { 0 }; bool isSvgStringValid = false; +#if defined(SUPPORT_FILEFORMAT_SVG) // Validate fileName or string if (fileNameOrString != NULL) { @@ -386,6 +387,9 @@ Image LoadImageSvg(const char *fileNameOrString, int width, int height) if (isSvgStringValid && (fileData != fileNameOrString)) UnloadFileData(fileData); } +#else + TRACELOG(LOG_WARNING, "SVG image support not enabled, image can not be loaded"); +#endif return image; } |
