diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2015-09-07 13:59:43 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-09-10 11:20:57 -0600 |
| commit | e4c92a63944ab66a8a10da4a55acccef15805e52 (patch) | |
| tree | b583ea7045a3de06d76e7888b9d665bbce73fe7e /layers/screenshot.cpp | |
| parent | a52e058a91a3ce97c989760025a557fbcbf26368 (diff) | |
| download | usermoji-e4c92a63944ab66a8a10da4a55acccef15805e52.tar.xz | |
vulkan.h: Change return types of some functions to void
Functions that should be thought of as "impossible to fail in the face
of valid parameters" have had their return types changed to void.
This includes all of the vkDestroy functions, vkFreeMemory, and vkUnmapMemory.
vkUpdateDescriptorSets is also included, because of the frequency the function
is expected to be called.
Diffstat (limited to 'layers/screenshot.cpp')
| -rw-r--r-- | layers/screenshot.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/layers/screenshot.cpp b/layers/screenshot.cpp index 5ee3e6c4..e8d4b602 100644 --- a/layers/screenshot.cpp +++ b/layers/screenshot.cpp @@ -302,12 +302,9 @@ static void writePPM( const char *filename, VkImage image1) file.close(); // Clean up - err = pTableDevice->UnmapMemory(device, mem2); - assert(!err); - err = pTableDevice->FreeMemory(device, mem2); - assert(!err); - err = pTableDevice->DestroyCommandBuffer(device, cmdBuffer); - assert(!err); + pTableDevice->UnmapMemory(device, mem2); + pTableDevice->FreeMemory(device, mem2); + pTableDevice->DestroyCommandBuffer(device, cmdBuffer); } |
