Fix compilation error.

This commit is contained in:
Skyth 2024-12-20 15:51:52 +03:00
parent 91e6f49231
commit b9b41a730b

View file

@ -154,15 +154,15 @@ void GameWindow::Init(bool sdlVideoDefault)
{ {
int videoRes = SDL_VideoInit("wayland"); int videoRes = SDL_VideoInit("wayland");
if (videoRes != 0) if (videoRes != 0)
SDL_VideoInit(nullptr); sdlVideoDefault = true;
} }
#else #else
else sdlVideoDefault = true;
{
SDL_VideoInit(nullptr);
}
#endif #endif
if (sdlVideoDefault)
SDL_VideoInit(nullptr);
const char* videoDriverName = SDL_GetCurrentVideoDriver(); const char* videoDriverName = SDL_GetCurrentVideoDriver();
if (videoDriverName != nullptr) if (videoDriverName != nullptr)
fmt::println("SDL Video Driver: {}", videoDriverName); fmt::println("SDL Video Driver: {}", videoDriverName);