demos: Fix compile error in cube.c
authorMike Schuchardt <mikes@lunarg.com>
Fri, 23 Feb 2018 19:44:05 +0000 (12:44 -0700)
committerMike Schuchardt <mikes@lunarg.com>
Fri, 9 Mar 2018 20:54:31 +0000 (13:54 -0700)
Change-Id: I9ff2429f6f2b79795bbc57e376decae8c0dae630

demos/cube.c

index a03234e..273951a 100644 (file)
@@ -787,7 +787,10 @@ static void demo_draw_build_cmd(struct demo *demo, VkCommandBuffer cmd_buf) {
         label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
         label.pNext = NULL;
         label.pLabelName = "ActualDraw";
-        label.color = {-0.4f, -0.3f, -0.2f, -0.1f};
+        label.color[0] = -0.4f;
+        label.color[1] = -0.3f;
+        label.color[2] = -0.2f;
+        label.color[3] = -0.1f;
         demo->CmdBeginDebugUtilsLabelEXT(cmd_buf, &label);
     }