@@ -131,14 +131,14 @@ namespace plume
131131#ifdef MARATHON_RECOMP_METAL
132132extern std::unique_ptr<RenderInterface> CreateMetalInterface ();
133133#endif
134- #ifdef SDL_VULKAN_ENABLED
134+ #ifdef PLUME_SDL_VULKAN_ENABLED
135135 extern std::unique_ptr<RenderInterface> CreateVulkanInterface (RenderWindow sdlWindow);
136136#else
137137 extern std::unique_ptr<RenderInterface> CreateVulkanInterface ();
138138#endif
139139
140140 static std::unique_ptr<RenderInterface> CreateVulkanInterfaceWrapper () {
141- #ifdef SDL_VULKAN_ENABLED
141+ #ifdef PLUME_SDL_VULKAN_ENABLED
142142 return CreateVulkanInterface (GameWindow::s_renderWindow);
143143#else
144144 return CreateVulkanInterface ();
@@ -2061,7 +2061,14 @@ bool Video::CreateHostDevice(const char *sdlVideoDriver, bool graphicsApiRetry)
20612061 break ;
20622062 }
20632063
2064- g_swapChain = g_queue->createSwapChain (GameWindow::s_renderWindow, bufferCount, BACKBUFFER_FORMAT , Config::MaxFrameLatency);
2064+ RenderSwapChainDesc swapChainDesc;
2065+ swapChainDesc.renderWindow = GameWindow::s_renderWindow;
2066+ swapChainDesc.textureCount = bufferCount;
2067+ swapChainDesc.format = BACKBUFFER_FORMAT ;
2068+ swapChainDesc.maxFrameLatency = Config::MaxFrameLatency;
2069+ swapChainDesc.enablePresentWait = g_capabilities.presentWait ;
2070+
2071+ g_swapChain = g_queue->createSwapChain (swapChainDesc);
20652072 g_swapChain->setVsyncEnabled (Config::VSync);
20662073 g_swapChainValid = !g_swapChain->needsResize ();
20672074
0 commit comments