From 8e889c180431ba36fc601fff227d5125ec1d7d05 Mon Sep 17 00:00:00 2001 From: HarrievG Date: Sat, 6 Aug 2022 20:43:25 +0200 Subject: [PATCH] Fixed non Simdpath for idRenderModelGLTF::UpdateSurface --- neo/renderer/Model_gltf.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/neo/renderer/Model_gltf.cpp b/neo/renderer/Model_gltf.cpp index 6acd6afa..c85a052f 100644 --- a/neo/renderer/Model_gltf.cpp +++ b/neo/renderer/Model_gltf.cpp @@ -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 );