Sfoglia il codice sorgente

mem leak in gltf loader (#995)

pull/999/head
chriscamacho 6 anni fa
committed by Ray
parent
commit
3d8b1165a8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      src/models.c

+ 2
- 1
src/models.c Vedi 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);

Caricamento…
Annulla
Salva