hello: avoid differing signed comparisons
This commit is contained in:
parent
98d30a560e
commit
e56b8573df
@ -355,13 +355,13 @@ main (void)
|
|||||||
auto queues = pdevice.queue_families ();
|
auto queues = pdevice.queue_families ();
|
||||||
int graphics_queue_id = -1, present_queue_id = -1;
|
int graphics_queue_id = -1, present_queue_id = -1;
|
||||||
|
|
||||||
for (int i = 0, last = queues.size (); i != last; ++i)
|
for (size_t i = 0, last = queues.size (); i != last; ++i)
|
||||||
if (queues[i].queueCount > 0 && queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) {
|
if (queues[i].queueCount > 0 && queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) {
|
||||||
graphics_queue_id = i;
|
graphics_queue_id = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0, last = queues.size (); i != last; ++i) {
|
for (size_t i = 0, last = queues.size (); i != last; ++i) {
|
||||||
if (cruft::vk::error::try_query (vkGetPhysicalDeviceSurfaceSupportKHR,
|
if (cruft::vk::error::try_query (vkGetPhysicalDeviceSurfaceSupportKHR,
|
||||||
pdevice.native (), i, surface)) {
|
pdevice.native (), i, surface)) {
|
||||||
present_queue_id = i;
|
present_queue_id = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user