diff options
| author | Charles Giessen <charles@lunarg.com> | 2025-04-16 11:19:39 -0500 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2025-04-16 10:53:32 -0600 |
| commit | 50ace769d381f746d7d6cb75db982fa4d94a112f (patch) | |
| tree | 0ff6c5c9290a4c79777c1a9cd95d6270a47d4d1a | |
| parent | a8f207875c97169e8b7c0a62b25d9a1bc4724432 (diff) | |
| download | usermoji-50ace769d381f746d7d6cb75db982fa4d94a112f.tar.xz | |
cube: Fix broken framecount
| -rw-r--r-- | cube/cube.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cube/cube.c b/cube/cube.c index 23f28225..ce361d33 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -2718,7 +2718,7 @@ static void demo_run(struct demo *demo) { if (!demo->initialized || !demo->swapchain_ready) return; demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) { @@ -2908,7 +2908,7 @@ static void demo_run_xlib(struct demo *demo) { } if (demo->initialized && demo->swapchain_ready) { demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) demo->quit = true; @@ -2977,7 +2977,7 @@ static void demo_run_xcb(struct demo *demo) { } if (demo->initialized && demo->swapchain_ready) { demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) demo->quit = true; @@ -3039,7 +3039,7 @@ static void demo_run(struct demo *demo) { wl_display_dispatch_pending(demo->wayland_display); if (demo->initialized && demo->swapchain_ready) { demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) demo->quit = true; @@ -3188,7 +3188,7 @@ static void demo_run_directfb(struct demo *demo) { if (!demo->event_buffer->GetEvent(demo->event_buffer, DFB_EVENT(&event))) demo_handle_directfb_event(demo, &event); if (demo->initialized && demo->swapchain_ready) { demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) demo->quit = true; @@ -3202,7 +3202,7 @@ static void demo_run(struct demo *demo) { if (!demo->initialized || !demo->swapchain_ready) return; demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } } @@ -3212,7 +3212,7 @@ static void demo_run(struct demo *demo) { if (!demo->initialized || !demo->swapchain_ready) return; demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) { @@ -3459,7 +3459,7 @@ static void demo_run(struct demo *demo) { if (demo->pause || !demo->initialized || !demo->swapchain_ready) { } else { demo_draw(demo); - if (demo->is_minimized) { + if (!demo->is_minimized) { demo->curFrame++; } if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) { |
