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

@ -2697,10 +2697,10 @@ void S3L_drawScene(S3L_Scene scene)
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. */