Fixed mesh loading.

This commit is contained in:
Branimir Karadžić 2016-02-06 13:41:58 -08:00
parent cf6ccace77
commit 1183d9e337

View file

@ -409,7 +409,9 @@ struct Mesh
bx::AllocatorI* allocator = entry::getAllocator(); bx::AllocatorI* allocator = entry::getAllocator();
uint32_t chunk; uint32_t chunk;
while (4 == bx::read(_reader, chunk) ) bx::Error err;
while (4 == bx::read(_reader, chunk, &err)
&& err.isOk() )
{ {
switch (chunk) switch (chunk)
{ {