Update rmodels.c
This commit is contained in:
parent
c1432386a5
commit
37c047eabc
1 changed files with 2 additions and 2 deletions
|
@ -4383,7 +4383,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co
|
||||||
unsigned char *data = DecodeBase64(image->uri + i + 1, &size);
|
unsigned char *data = DecodeBase64(image->uri + i + 1, &size);
|
||||||
|
|
||||||
int width, height;
|
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);
|
RL_FREE(data);
|
||||||
|
|
||||||
rimage.data = raw;
|
rimage.data = raw;
|
||||||
|
@ -4417,7 +4417,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co
|
||||||
}
|
}
|
||||||
|
|
||||||
int width, height;
|
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);
|
RL_FREE(data);
|
||||||
|
|
||||||
rimage.data = raw;
|
rimage.data = raw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue