From bec7b6e29260caa9348b1fd42b5d65443d512748 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 20 Mar 2020 15:28:51 -0600 Subject: cube: Remove redundant memset The C++ Vulkan headers will default initialize objects, not need to memset it. Change-Id: Icdc5cde13410bc7f0002c2d6d4075e79100fd86d --- cube/cube.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'cube/cube.cpp') 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); -- cgit v1.2.3