Update rmodels.c

This commit is contained in:
Ray 2021-09-22 13:02:44 +02:00
parent 0e037555fe
commit 8a434b4fd4

View File

@ -4409,7 +4409,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co
n += stride;
}
rimage = LoadImageFromMemory(".png", data, size);
rimage = LoadImageFromMemory(".png", data, (int)image->buffer_view->size);
RL_FREE(data);
// TODO: Tint shouldn't be applied here!