Fixed non Simdpath for idRenderModelGLTF::UpdateSurface

This commit is contained in:
HarrievG 2022-08-06 20:43:25 +02:00
parent 2ef1fe3ce2
commit 8e889c1804

View file

@ -1406,11 +1406,10 @@ void idRenderModelGLTF::UpdateSurface( const struct renderEntity_s* ent, const i
_mm_store_ss( tri->bounds.ToFloatPtr( ) + 5, _mm_splat_ps( maxZ, 3 ) );
#else
bounds.Clear( );
for( int i = 0; i < numMeshJoints; i++ )
for( int i = 0; i < jointIds.Num( ); i++ )
{
const idJointMat& joint = entJoints[meshJoints[i]];
const idJointMat& joint = entJoints[i];
bounds.AddPoint( joint.GetTranslation( ) );
}
bounds.ExpandSelf( maxJointVertDist );