From c5a79262fb043e4188c4fc17f1a001525fb7f80b Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Sun, 1 Aug 2021 16:29:25 -0500 Subject: [PATCH] Move line before loop --- small3dlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/small3dlib.h b/small3dlib.h index 3b06cf6..c731559 100644 --- a/small3dlib.h +++ b/small3dlib.h @@ -2696,11 +2696,11 @@ void S3L_drawScene(S3L_Scene scene) S3L_Index triangleCount = scene.models[modelIndex].triangleCount; triangleIndex = 0; + + model = &(scene.models[modelIndex]); while (triangleIndex < triangleCount) { - model = &(scene.models[modelIndex]); - /* Some kind of cache could be used in theory to not project perviously already projected vertices, but after some testing this was abandoned, no gain was seen. */