From 56d313f08dfde7aca4229de6a70644fd5ac20299 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 21 Jul 2021 17:37:52 +0300 Subject: [PATCH] - use SDL Vulkan window flag directly --- source/common/platform/posix/sdl/sdlglvideo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/common/platform/posix/sdl/sdlglvideo.cpp b/source/common/platform/posix/sdl/sdlglvideo.cpp index de9e01fc5..4f7dc6e88 100644 --- a/source/common/platform/posix/sdl/sdlglvideo.cpp +++ b/source/common/platform/posix/sdl/sdlglvideo.cpp @@ -115,8 +115,6 @@ CCMD(vid_list_sdl_render_drivers) namespace Priv { - static const uint32_t VulkanWindowFlag = SDL_WINDOW_VULKAN; - SDL_Window *window; bool vulkanEnabled; bool softpolyEnabled; @@ -408,7 +406,7 @@ SDLVideo::SDLVideo () if (Priv::vulkanEnabled) { - Priv::CreateWindow(Priv::VulkanWindowFlag | SDL_WINDOW_HIDDEN | (vid_fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0)); + Priv::CreateWindow(SDL_WINDOW_VULKAN | SDL_WINDOW_HIDDEN | (vid_fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0)); if (Priv::window == nullptr) {