소스 검색

Fix Issue #2441 (#2442)

Remove line that caused a memory leak
pull/2446/head
Leonardo Montagner 3 년 전
committed by GitHub
부모
커밋
3580267479
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. +0
    -1
      src/rmodels.c

+ 0
- 1
src/rmodels.c 파일 보기

@ -4643,7 +4643,6 @@ static Model LoadGLTF(const char *fileName)
// Load our model data: meshes and materials
model.meshCount = primitivesCount;
model.meshes = RL_CALLOC(model.meshCount, sizeof(Mesh));
for (int i = 0; i < model.meshCount; i++) model.meshes[i].vboId = (unsigned int*)RL_CALLOC(MAX_MESH_VERTEX_BUFFERS, sizeof(unsigned int));
// NOTE: We keep an extra slot for default material, in case some mesh requires it
model.materialCount = (int)data->materials_count + 1;

불러오는 중...
취소
저장