X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fvulkan%2Fallocator.cc;fp=src%2Fvulkan%2Fallocator.cc;h=60da2c8ca030982d58b51c92bf8d3980da1aefab;hp=ba1b47be1909122a194565ed497a94a8e395d421;hb=05d269a194496bcef85da78652b947f5bf1c9bcf;hpb=6cecb8f16f1863496884ca86790375dbb27138ba 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;