X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;ds=sidebyside;f=src%2Fvulkan%2Fallocator.cc;h=60da2c8ca030982d58b51c92bf8d3980da1aefab;hb=f6ceb163227d00d7f97df1fc2dfbdd419c56277e;hp=ba1b47be1909122a194565ed497a94a8e395d421;hpb=c3d7c1b7f8a7f4bcfc7661b6baf166ce0648083a;p=demo diff --git a/src/vulkan/allocator.cc b/src/vulkan/allocator.cc index ba1b47b..60da2c8 100644 --- a/src/vulkan/allocator.cc +++ b/src/vulkan/allocator.cc @@ -34,7 +34,7 @@ void vku_free(VkDeviceMemory gpu_memory) bool vku_write_memory(VkDeviceMemory gpu_mem, int size, void *data) { uint8_t *pdata; - VkResult res = vkMapMemory(vk_device, gpu_mem, 0, size, 0, (void**)&pdata); + VkResult res = vkMapMemory(vk_device, gpu_mem, 0, size, 0, (void **)&pdata); if(res != VK_SUCCESS) { fprintf(stderr, "Failed to map memory to write data.\n"); return false;