mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
D3D11HostDisplay: Don't create swap chain for headless
This commit is contained in:
parent
b3359dadc9
commit
2c4fce3f0d
|
@ -271,8 +271,11 @@ bool D3D11HostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_view
|
|||
|
||||
bool D3D11HostDisplay::InitializeRenderDevice(std::string_view shader_cache_directory, bool debug_device)
|
||||
{
|
||||
if (!CreateSwapChain())
|
||||
if (m_window_info.type != WindowInfo::Type::Surfaceless && m_window_info.type != WindowInfo::Type::Libretro &&
|
||||
!CreateSwapChain())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!CreateResources())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue