Vulkan/Context: Support specifying GPU to use
This commit is contained in:
parent
4a04800132
commit
1b5f8db2fc
3 changed files with 21 additions and 8 deletions
|
|
@ -194,7 +194,7 @@ void VulkanHostDisplay::SetVSync(bool enabled)
|
|||
|
||||
bool VulkanHostDisplay::CreateContextAndSwapChain(const WindowInfo& wi, bool debug_device)
|
||||
{
|
||||
if (!Vulkan::Context::Create(0u, &wi, &m_swap_chain, debug_device, false))
|
||||
if (!Vulkan::Context::Create({}, &wi, &m_swap_chain, debug_device, false))
|
||||
{
|
||||
Log_ErrorPrintf("Failed to create Vulkan context");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue