mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -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();
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue