mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Vulkan: Refactor initialization to only use a single instance
Hopefully will fix the crash in vkDestroyInstance on the NV Shield TV, and likely reduce boot times slightly for drivers that take a while to create instances.
This commit is contained in:
@ -327,7 +327,7 @@ void VulkanContext::PopulateBackendInfoMultisampleModes(
|
||||
}
|
||||
|
||||
std::unique_ptr<VulkanContext> VulkanContext::Create(VkInstance instance, VkPhysicalDevice gpu,
|
||||
VkSurfaceKHR surface, VideoConfig* config,
|
||||
VkSurfaceKHR surface,
|
||||
bool enable_debug_reports,
|
||||
bool enable_validation_layer)
|
||||
{
|
||||
@ -354,9 +354,6 @@ std::unique_ptr<VulkanContext> VulkanContext::Create(VkInstance instance, VkPhys
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Update video config with features.
|
||||
PopulateBackendInfoFeatures(config, gpu, context->m_device_features);
|
||||
PopulateBackendInfoMultisampleModes(config, gpu, context->m_device_properties);
|
||||
return context;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user