mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
- fixed asserts while converting gltf meshes primitives
This commit is contained in:
parent
3ea4ac29fe
commit
8b5dc677e3
1 changed files with 4 additions and 1 deletions
|
@ -238,6 +238,9 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive* p
|
|||
if( attrAcc->typeSize == 2 )
|
||||
{
|
||||
uint16_t vec[4];
|
||||
|
||||
assert( sizeof( vec ) == (attrAcc->typeSize * 4) );
|
||||
|
||||
for( int i = 0; i < attrAcc->count; i++ )
|
||||
{
|
||||
bin.Read( ( void* )( &vec[0] ), attrAcc->typeSize );
|
||||
|
@ -260,7 +263,7 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive* p
|
|||
uint8_t vec[4];
|
||||
for( int i = 0; i < attrAcc->count; i++ )
|
||||
{
|
||||
assert( sizeof( vec ) == attrAcc->typeSize );
|
||||
assert( sizeof( vec ) == (attrAcc->typeSize * 4) );
|
||||
|
||||
bin.Read( ( void* )( &vec[0] ), attrAcc->typeSize );
|
||||
bin.Read( ( void* )( &vec[1] ), attrAcc->typeSize );
|
||||
|
|
Loading…
Reference in a new issue