mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 07:22:05 +00:00
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:
parent
7a86e7f043
commit
e13e034cc4
2 changed files with 4 additions and 4 deletions
|
@ -559,7 +559,7 @@ if( HAVE_MMX )
|
|||
gamedata/textures/hires/hqnx_asm/hq2x_asm.cpp
|
||||
gamedata/textures/hires/hqnx_asm/hq3x_asm.cpp
|
||||
gamedata/textures/hires/hqnx_asm/hq4x_asm.cpp
|
||||
gamedata/textures/hires/gl_hqresize.cpp
|
||||
gamedata/textures/hires/hqresize.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-mmmx" )
|
||||
endif( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||
endif( HAVE_MMX )
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue