From e00ea27d255c20c054623854cf5eed72c6f6725b Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 23 Sep 2024 14:04:51 -0400
Subject: [PATCH] examples/renderer/01-clear: No longer needs vsync.
This now chooses the next color based on time, so it won't go wild if the
framerate is unbounded.
---
examples/renderer/01-clear/clear.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/renderer/01-clear/clear.c b/examples/renderer/01-clear/clear.c
index 322c28d46423c..8feee980b0618 100644
--- a/examples/renderer/01-clear/clear.c
+++ b/examples/renderer/01-clear/clear.c
@@ -26,7 +26,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Couldn't create window/renderer!", SDL_GetError(), NULL);
return SDL_APP_FAILURE;
}
- SDL_SetRenderVSync(renderer, 1); /* try to show frames at the monitor refresh rate. */
+
return SDL_APP_CONTINUE; /* carry on with the program! */
}