aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Northrop <cody@lunarg.com>2015-07-16 10:29:32 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-17 10:05:23 -0600
commit918073081c23fbd11342dda9c10fcafabac13b02 (patch)
tree60235714030010b8d2ff2cb86b441d256140abd4
parent0a82c0b16e2f1c92c14b6c080622008a45d57d81 (diff)
downloadusermoji-918073081c23fbd11342dda9c10fcafabac13b02.tar.xz
demos: Set size of uniform buffer in cube
-rw-r--r--demos/cube.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 8cf8901b..83244ff8 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -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);