mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed mesh loading.
This commit is contained in:
parent
cf6ccace77
commit
1183d9e337
1 changed files with 3 additions and 1 deletions
|
@ -409,7 +409,9 @@ struct Mesh
|
|||
bx::AllocatorI* allocator = entry::getAllocator();
|
||||
|
||||
uint32_t chunk;
|
||||
while (4 == bx::read(_reader, chunk) )
|
||||
bx::Error err;
|
||||
while (4 == bx::read(_reader, chunk, &err)
|
||||
&& err.isOk() )
|
||||
{
|
||||
switch (chunk)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue