projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backup - missing some
[demo]
/
src
/
vulkan
/
allocator.cc
diff --git
a/src/vulkan/allocator.cc
b/src/vulkan/allocator.cc
index
ba1b47b
..
60da2c8
100644
(file)
--- 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;
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;
if(res != VK_SUCCESS) {
fprintf(stderr, "Failed to map memory to write data.\n");
return false;