From 5561411f6534f31691b4a934ede06e99a8bf0907 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Fri, 17 May 2024 21:35:27 +0200 Subject: [PATCH] Sync non-SSE bounding box calcuation in idRenderModelGLTF::UpdateSurface --- neo/renderer/Model_gltf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neo/renderer/Model_gltf.cpp b/neo/renderer/Model_gltf.cpp index ab401f0c..c9addf09 100644 --- a/neo/renderer/Model_gltf.cpp +++ b/neo/renderer/Model_gltf.cpp @@ -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