Fixing the error of loading VOX models. (#2065)
* - Fixing the error of loading VOX models. * - fixed spaces
This commit is contained in:
parent
c87e91d27a
commit
d47d7c0001
1 changed files with 4 additions and 0 deletions
4
src/external/vox_loader.h
vendored
4
src/external/vox_loader.h
vendored
|
@ -43,6 +43,7 @@ revision history:
|
||||||
Changed Vox_LoadFileName to Vox_LoadFromMemory
|
Changed Vox_LoadFileName to Vox_LoadFromMemory
|
||||||
1.02 (2021-09-10) @raysan5: Reviewed some formating
|
1.02 (2021-09-10) @raysan5: Reviewed some formating
|
||||||
1.03 (2021-10-02) @catmanl: Reduce warnings on gcc
|
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);
|
unsigned long chunkSize = *((unsigned long*)fileDataPtr);
|
||||||
fileDataPtr += sizeof(unsigned long);
|
fileDataPtr += sizeof(unsigned long);
|
||||||
|
|
||||||
|
//unsigned long chunkTotalChildSize = *((unsigned long*)fileDataPtr);
|
||||||
|
fileDataPtr += sizeof(unsigned long);
|
||||||
|
|
||||||
if (strcmp(szChunkName, "SIZE") == 0)
|
if (strcmp(szChunkName, "SIZE") == 0)
|
||||||
{
|
{
|
||||||
//(4 bytes x 3 : x, y, z )
|
//(4 bytes x 3 : x, y, z )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue