From a595f76f66546b811a1c0959501dfd06eac165b8 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 22 Jul 2021 16:43:26 +0200 Subject: [PATCH] SDL2: missing SDL_INIT_VIDEO in SDL_Init --- src/video_display/sdl2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;