mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Refactor: Merge the ChooseDevice function into CreateDevice
This commit is contained in:
1 parent
cb9c230e4e
commit
9f1f75ddab
5 files changed
+34
-41
No files matched your search
@@ -84,8 +84,7 @@ bool SDLVulkanGraphicsContext::Init(SDL_Window *&window, int x, int y, int w, in
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user