diff options
| author | Ray <[email protected]> | 2021-09-22 11:28:52 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-09-22 11:28:52 +0200 |
| commit | 37c047eabcb7a13b159ef0a995897cc46947ad17 (patch) | |
| tree | f70e9ae517f20b7557d5fcb1bc8548b250f3bc86 /src | |
| parent | c1432386a5ddad1784a6cacaf1e8d5a96a5388b2 (diff) | |
| download | raylib-37c047eabcb7a13b159ef0a995897cc46947ad17.tar.gz raylib-37c047eabcb7a13b159ef0a995897cc46947ad17.zip | |
Update rmodels.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/rmodels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index 3ee0d243..c97a2004 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -4383,7 +4383,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co unsigned char *data = DecodeBase64(image->uri + i + 1, &size); int width, height; - unsigned char *raw = stbi_load_from_memory(data, size, &width, &height, NULL, 4); + unsigned char *raw = LoadImageFromMemory(".png", data, size, &width, &height, NULL, 4); RL_FREE(data); rimage.data = raw; @@ -4417,7 +4417,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co } int width, height; - unsigned char *raw = stbi_load_from_memory(data, (int)image->buffer_view->size, &width, &height, NULL, 4); + unsigned char *raw = LoadImageFromMemory(".png", data, (int)image->buffer_view->size, &width, &height, NULL, 4); RL_FREE(data); rimage.data = raw; |
