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
@@ -118,8 +118,7 @@ bool WindowsVulkanContext::Init(HINSTANCE hInst, HWND hWnd, std::string *error_m
g_Config.sVulkanDevice = vulkan_->GetPhysicalDeviceProperties(deviceNum).properties.deviceName;
}
vulkan_->ChooseDevice(deviceNum);
if (vulkan_->CreateDevice() != VK_SUCCESS) {
if (vulkan_->CreateDevice(deviceNum) != VK_SUCCESS) {
*error_message = vulkan_->InitError();
delete vulkan_;
vulkan_ = nullptr;