aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2015-04-17 11:33:20 +0800
committerIan Elliott <ian@LunarG.com>2015-04-17 11:44:10 -0600
commit9d0313a75474f8eb2b0b5239a20904a3b55ef50b (patch)
tree5499399da1b93c90b9f2dfef750f5346600ce528
parentaf2303765121cf32b69676690c9613cc4b267de7 (diff)
downloadusermoji-9d0313a75474f8eb2b0b5239a20904a3b55ef50b.tar.xz
demos/tri: remove outdated code
It was reintroduced by one of the commits during rebase.
-rw-r--r--demos/tri.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/tri.c b/demos/tri.c
index f8f3edde..67299b1c 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -50,7 +50,6 @@ struct demo {
struct {
VkImage image;
- uint32_t num_mem;
VkDeviceMemory mem;
VkColorAttachmentView view;
@@ -353,8 +352,7 @@ static void demo_prepare_buffers(struct demo *demo)
&demo->buffers[i].image, &demo->buffers[i].mem);
assert(!err);
- demo->buffers[i].num_mem = 1;
- demo_add_mem_refs(demo, demo->buffers[i].num_mem, demo->buffers[i].mem);
+ demo_add_mem_refs(demo, 1, demo->buffers[i].mem);
demo_set_image_layout(demo, demo->buffers[i].image,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);