mem leak in gltf loader

This commit is contained in:
Chris 2019-10-22 23:04:10 +01:00
parent 9b6227688f
commit f85b177957

View File

@ -3419,6 +3419,7 @@ static Texture LoadTextureFromCgltfImage(cgltf_image *image, const char *texPath
free(data);
Image rimage = LoadImagePro(raw, w, h, UNCOMPRESSED_R8G8B8A8);
free(raw);
// TODO: Tint shouldn't be applied here!
ImageColorTint(&rimage, tint);