aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2020-03-20 15:28:51 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2020-03-20 16:54:30 -0600
commitbec7b6e29260caa9348b1fd42b5d65443d512748 (patch)
tree28804893817f148113bf4aef0fb9f45eff300c06 /cube/cube.cpp
parentf881e61208736b1f381be819d923606c19fc9a12 (diff)
downloadusermoji-bec7b6e29260caa9348b1fd42b5d65443d512748.tar.xz
cube: Remove redundant memset
The C++ Vulkan headers will default initialize objects, not need to memset it. Change-Id: Icdc5cde13410bc7f0002c2d6d4075e79100fd86d
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 216440ab..bc10ac7f 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -2064,7 +2064,6 @@ void Demo::prepare_texture_buffer(const char *filename, texture_object *tex_obj)
VERIFY(result == vk::Result::eSuccess);
vk::SubresourceLayout layout;
- memset(&layout, 0, sizeof(layout));
layout.rowPitch = tex_width * 4;
auto data = device.mapMemory(tex_obj->mem, 0, tex_obj->mem_alloc.allocationSize);
VERIFY(data.result == vk::Result::eSuccess);