浏览代码

mem leak in gltf loader (#995)

pull/999/head
chriscamacho 6 年前
committed by Ray
父节点
当前提交
3d8b1165a8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/models.c

+ 2
- 1
src/models.c 查看文件

@ -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);

正在加载...
取消
保存