Browse Source

mem leak in gltf loader (#995)

pull/999/head
chriscamacho 5 years ago
committed by Ray
parent
commit
3d8b1165a8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/models.c

+ 2
- 1
src/models.c View File

@ -3419,7 +3419,8 @@ 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);
texture = LoadTextureFromImage(rimage);

Loading…
Cancel
Save