SDL2: missing SDL_INIT_VIDEO in SDL_Init

This commit is contained in:
Martin Pulec
2021-07-22 16:43:26 +02:00
parent 60975b5e06
commit a595f76f66

View File

@@ -5,7 +5,7 @@
* @author Martin Pulec <pulec@cesnet.cz>
*/
/*
* 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;