1
0
forked from 0ad/0ad

Adds a warning in case of Vulkan window creation failure.

This was SVN commit r27478.
This commit is contained in:
Vladislav Belov 2023-01-21 23:14:29 +00:00
parent 18b2f6e184
commit a054bd7a9d

View File

@ -397,6 +397,7 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
// SDL might fail to create a window in case of missing a Vulkan driver.
if (m_Backend == Renderer::Backend::Backend::VULKAN)
{
LOGWARNING("Failed to create a Vulkan window: %s", SDL_GetError());
DowngradeBackendSettingAfterCreationFailure();
return SetVideoMode(w, h, bpp, fullscreen);
}