Sync non-SSE bounding box calcuation in idRenderModelGLTF::UpdateSurface

This commit is contained in:
Robert Beckebans 2024-05-17 21:35:27 +02:00
parent 0657a59c69
commit 5561411f65

View file

@ -1942,13 +1942,13 @@ 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 < jointIds.Num(); i++ )
tri->bounds.Clear();
for( int i = 0; i < md5joints.Num(); i++ )
{
const idJointMat& joint = entJoints[i];
bounds.AddPoint( joint.GetTranslation() );
tri->bounds.AddPoint( joint.GetTranslation() );
}
bounds.ExpandSelf( maxJointVertDist );
tri->bounds.ExpandSelf( maxJointVertDist );
#endif