Skip to content

Commit 5ac80a0

Browse files
committed
fix GPUDisplayBackendVulkan.cxx
1 parent 2480c76 commit 5ac80a0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

GPU/GPUTracking/display/GPUDisplayBackendVulkan.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,12 +443,6 @@ void GPUDisplayBackendVulkan::createDevice()
443443
bestScore = score;
444444
}
445445
}
446-
if (mDisplay->cfg().vulkan.forceDevice != -1) {
447-
if (mDisplay->cfg().vulkan.forceDevice < 0 || mDisplay->cfg().vulkan.forceDevice >= (int32_t)devices.size()) {
448-
throw std::runtime_error("Invalid Vulkan device selected");
449-
}
450-
mPhysicalDevice = devices[mDisplay->cfg().vulkan.forceDevice];
451-
}
452446
if (!mPhysicalDevice) {
453447
throw std::runtime_error("All available Vulkan devices unsuited");
454448
}

0 commit comments

Comments
 (0)