瀏覽代碼

Fixing the error of loading VOX models. (#2065)

* - Fixing the error of loading VOX models.

* - fixed spaces
pull/2066/head
warzes 3 年之前
committed by GitHub
父節點
當前提交
d47d7c0001
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/external/vox_loader.h

+ 4
- 0
src/external/vox_loader.h 查看文件

@ -43,6 +43,7 @@ revision history:
Changed Vox_LoadFileName to Vox_LoadFromMemory
1.02 (2021-09-10) @raysan5: Reviewed some formating
1.03 (2021-10-02) @catmanl: Reduce warnings on gcc
1.04 (2021-10-17) @warzes: Fixing the error of loading VOX models
*/
@ -585,6 +586,9 @@ int Vox_LoadFromMemory(unsigned char* pvoxData, unsigned int voxDataSize, VoxArr
unsigned long chunkSize = *((unsigned long*)fileDataPtr);
fileDataPtr += sizeof(unsigned long);
//unsigned long chunkTotalChildSize = *((unsigned long*)fileDataPtr);
fileDataPtr += sizeof(unsigned long);
if (strcmp(szChunkName, "SIZE") == 0)
{
//(4 bytes x 3 : x, y, z )

Loading…
取消
儲存