Counter 't' is not incremented in drawPoly() #5

Closed
opened 2021-06-26 15:54:51 +02:00 by ABelliqueux · 0 comments
ABelliqueux commented 2021-06-26 15:54:51 +02:00 (Migrated from github.com)

t is not incremented, thus always 0.
This means that only the first mesh type is checked, and the following meshes are assumed to have the same type.
It works because the test mesh only has tris or quads, but won't work with mixed meshes.
85cab5c47e/src/graphics.c (L17-L27)

`t` is not incremented, thus always 0. This means that only the first mesh type is checked, and the following meshes are assumed to have the same type. It works because the test mesh only has tris **or** quads, but won't work with **mixed** meshes. https://github.com/ABelliqueux/3dcam-headers/blob/85cab5c47e8d455d559809e118c9f4d045674418/src/graphics.c#L17-L27
Sign in to join this conversation.
No description provided.