Преглед изворни кода

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.
Ryan C. Gordon пре 11 месеци
родитељ
комит
e00ea27d25
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/renderer/01-clear/clear.c

+ 1 - 1
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! */
 }