mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Fix compilation error.
This commit is contained in:
parent
91e6f49231
commit
b9b41a730b
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue