Skip to content
Snippets Groups Projects
Commit 609c4cd5 authored by peven's avatar peven
Browse files

fixed compilation issue with older SDL version

parent 76540935
Branches
No related merge requests found
......@@ -50,7 +50,7 @@ Engine::Engine(const std::string& app_name, uint32_t width, uint32_t height)
if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
char error_msg[512];
FATAL("Failed to initialize SDL ({}) : {}", SDL_GetError(), SDL_GetErrorMsg(error_msg, sizeof(error_msg)));
FATAL("Failed to initialize SDL ({})", SDL_GetError());
}
window_handle = SDL_CreateWindow(app_name.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_SHOWN);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment