demos: Set size of uniform buffer in cube
authorCody Northrop <cody@lunarg.com>
Thu, 16 Jul 2015 16:29:32 +0000 (10:29 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 17 Jul 2015 16:05:23 +0000 (10:05 -0600)
demos/cube.c

index 8cf8901b5ad93671f2964243f97917cc3afbdb41..83244ff867535f3e51bfa6a73ddbeb1342cf9974 100644 (file)
@@ -1245,6 +1245,7 @@ void demo_prepare_cube_data_buffer(struct demo *demo)
     memset(&buf_info, 0, sizeof(buf_info));
     buf_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
     buf_info.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
+    buf_info.size = sizeof(data);
     err = vkCreateBuffer(demo->device, &buf_info, &demo->uniform_data.buf);
     assert(!err);