demos: Clean up Windows build warning
authorMark Lobodzinski <mark@lunarg.com>
Mon, 3 Oct 2016 22:00:40 +0000 (16:00 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 4 Oct 2016 19:30:59 +0000 (13:30 -0600)
Change-Id: I39daaa144e82eeabbe532cb32d334d4e60e6a7e2

demos/cube.c

index 543a81e..acf34ef 100644 (file)
@@ -3075,7 +3075,7 @@ static void demo_init_vk_swapchain(struct demo *demo) {
     if (presentQueueFamilyIndex == UINT32_MAX) {
         // If didn't find a queue that supports both graphics and present, then
         // find a separate present queue.
-        for (size_t i = 0; i < demo->queue_family_count; ++i) {
+        for (i = 0; i < demo->queue_family_count; ++i) {
             if (supportsPresent[i] == VK_TRUE) {
                 presentQueueFamilyIndex = i;
                 break;