瀏覽代碼

Update rtextures.c

pull/3290/head
Ray 1 年之前
父節點
當前提交
8a82e17a79
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/rtextures.c

+ 4
- 0
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;
}

Loading…
取消
儲存