diff --git a/src/video_display/sdl2.cpp b/src/video_display/sdl2.cpp index fd2eff344..4a4698815 100644 --- a/src/video_display/sdl2.cpp +++ b/src/video_display/sdl2.cpp @@ -5,7 +5,7 @@ * @author Martin Pulec */ /* - * Copyright (c) 2018-2019 CESNET, z. s. p. o. + * Copyright (c) 2018-2021 CESNET, z. s. p. o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -622,7 +622,7 @@ static void *display_sdl2_init(struct module *parent, const char *fmt, unsigned tmp = NULL; } - int ret = SDL_Init(SDL_INIT_EVENTS); + int ret = SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS); if (ret < 0) { log_msg(LOG_LEVEL_ERROR, "Unable to initialize SDL2: %s\n", SDL_GetError()); delete s;