SoftPoly only worked with Vulkan support on POSIX platforms (#1036)

* - CMake: fix wrong filename.

* - Fixed: SoftPoly only worked with Vulkan support on POSIX platforms.
This commit is contained in:
dondiego 2020-02-15 23:41:52 +01:00 committed by GitHub
commit e13e034cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -432,10 +432,10 @@ SDLVideo::SDLVideo ()
}
#endif // !SDL2_STATIC_LIBRARY
Priv::softpolyEnabled = vid_preferbackend == 2;
#ifdef HAVE_VULKAN
Priv::vulkanEnabled = vid_preferbackend == 1
&& Priv::Vulkan_GetDrawableSize && Priv::Vulkan_GetInstanceExtensions && Priv::Vulkan_CreateSurface;
Priv::softpolyEnabled = vid_preferbackend == 2;
if (Priv::vulkanEnabled)
{
@ -446,11 +446,11 @@ SDLVideo::SDLVideo ()
Priv::vulkanEnabled = false;
}
}
else if (Priv::softpolyEnabled)
#endif
if (Priv::softpolyEnabled)
{
Priv::CreateWindow(SDL_WINDOW_HIDDEN);
}
#endif
}
SDLVideo::~SDLVideo ()