mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Add missing check for no Vulkan devices
This commit is contained in:
parent
640ac3f9fe
commit
bd60b873ec
@ -158,6 +158,12 @@ bool PlVkRenderer::chooseVulkanDevice(PDECODER_PARAMETERS params, bool hdrOutput
|
||||
std::set<uint32_t> devicesTried;
|
||||
VkPhysicalDeviceProperties deviceProps;
|
||||
|
||||
if (physicalDeviceCount == 0) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"No Vulkan devices found!");
|
||||
return false;
|
||||
}
|
||||
|
||||
// First, try the first device in the list to support device selection layers
|
||||
// that put the user's preferred GPU in the first slot.
|
||||
fn_vkGetPhysicalDeviceProperties(physicalDevices[0], &deviceProps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user