From b9b41a730b81458aaa36674e1f3bfe06ce4b301f Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:51:52 +0300 Subject: [PATCH] Fix compilation error. --- UnleashedRecomp/ui/game_window.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/ui/game_window.cpp b/UnleashedRecomp/ui/game_window.cpp index dfed59ce..554d1ee2 100644 --- a/UnleashedRecomp/ui/game_window.cpp +++ b/UnleashedRecomp/ui/game_window.cpp @@ -154,15 +154,15 @@ void GameWindow::Init(bool sdlVideoDefault) { int videoRes = SDL_VideoInit("wayland"); if (videoRes != 0) - SDL_VideoInit(nullptr); + sdlVideoDefault = true; } #else - else - { - SDL_VideoInit(nullptr); - } + sdlVideoDefault = true; #endif + if (sdlVideoDefault) + SDL_VideoInit(nullptr); + const char* videoDriverName = SDL_GetCurrentVideoDriver(); if (videoDriverName != nullptr) fmt::println("SDL Video Driver: {}", videoDriverName);