Skip to content

Commit ed6c434

Browse files
committed
Init sdl timer
1 parent f499f6d commit ed6c434

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backends/sdl2_renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ret_code Renderer::initRenderer(Context &ctx) {
148148
return ErrorCode;
149149
}
150150

151-
if (SDL_Init(SDL_INIT_VIDEO) == -1) {
151+
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) {
152152
ctx.mLogger(LogSeverity::Error, "Error while SDL_Init for video subsystem.");
153153
ctx.mCreated = false;
154154
return ErrorCode;

0 commit comments

Comments
 (0)