Skip to content

Commit 1e480b3

Browse files
authored
Merge pull request #1 from wangii/macOS-getQueueFamily-bestMatch-crash
Get the first best match family queue on macOS
2 parents c1675b5 + 028ffdc commit 1e480b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vsg/vk/PhysicalDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int PhysicalDevice::getQueueFamily(VkQueueFlags queueFlags) const
4646
return i;
4747
}
4848

49-
bestFamily = i;
49+
if (bestFamily < 0) bestFamily = i;
5050
}
5151
}
5252

0 commit comments

Comments
 (0)