Vulkan: Don't force debug device/validation layers

This commit is contained in:
Connor McLaughlin 2020-09-08 17:22:34 +10:00
parent 455f359125
commit 9a52c54c2f

View file

@ -233,7 +233,7 @@ void VulkanHostDisplay::SetVSync(bool enabled)
bool VulkanHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name, bool debug_device) bool VulkanHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name, bool debug_device)
{ {
if (!Vulkan::Context::Create(adapter_name, &wi, &m_swap_chain, true, true)) if (!Vulkan::Context::Create(adapter_name, &wi, &m_swap_chain, debug_device, false))
{ {
Log_ErrorPrintf("Failed to create Vulkan context"); Log_ErrorPrintf("Failed to create Vulkan context");
return false; return false;