Refactor: Merge the ChooseDevice function into CreateDevice

This commit is contained in:
Henrik Rydgård committed 2024-07-17 10:31:49 +02:00
1 parent cb9c230e4e
commit 9f1f75ddab
5 files changed
+34 -41

No files matched your search

+1 -2
View File
@@ -56,8 +56,7 @@ static bool create_device(retro_vulkan_context *context, VkInstance instance, Vk
physical_device = vk->GetBestPhysicalDevice();
}
vk->ChooseDevice(physical_device);
vk->CreateDevice();
vk->CreateDevice(physical_device);
#ifdef _WIN32
vk->InitSurface(WINDOWSYSTEM_WIN32, nullptr, nullptr);
#elif defined(__ANDROID__)