1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-22 20:49:58 +01:00

Move line before loop

This commit is contained in:
Miloslav Ciz 2021-08-01 16:29:25 -05:00
parent efa5ba9b24
commit c5a79262fb

View file

@ -2696,11 +2696,11 @@ void S3L_drawScene(S3L_Scene scene)
S3L_Index triangleCount = scene.models[modelIndex].triangleCount; S3L_Index triangleCount = scene.models[modelIndex].triangleCount;
triangleIndex = 0; triangleIndex = 0;
model = &(scene.models[modelIndex]);
while (triangleIndex < triangleCount) while (triangleIndex < triangleCount)
{ {
model = &(scene.models[modelIndex]);
/* Some kind of cache could be used in theory to not project perviously /* Some kind of cache could be used in theory to not project perviously
already projected vertices, but after some testing this was abandoned, already projected vertices, but after some testing this was abandoned,
no gain was seen. */ no gain was seen. */