Fix final bug

This commit is contained in:
Luke Benstead 2023-04-22 11:37:42 +01:00
parent baa275b41b
commit 095ebf2790
2 changed files with 2 additions and 4 deletions

View File

@ -202,8 +202,7 @@ void SceneListSubmit(void* src, int n) {
/* If this was the last vertex in the strip, we need to flush the queue and then
restart it again */
queue_head = (queue_head + 1) % queue_capacity;
counter--;
while(counter--) {
while(--counter) {
// There are 3 vertices, so we push the first one
_glPerspectiveDivideVertex(&queue[queue_head], h);
_glSubmitHeaderOrVertex(d, &queue[queue_head]);

View File

@ -203,8 +203,7 @@ void SceneListSubmit(void* src, int n) {
/* If this was the last vertex in the strip, we need to flush the queue and then
restart it again */
queue_head = (queue_head + 1) % queue_capacity;
counter--;
while(counter--) {
while(--counter) {
// There are 3 vertices, so we push the first one
_glPerspectiveDivideVertex(&queue[queue_head], h);
_glSubmitHeaderOrVertex(d, &queue[queue_head]);