forked from MoonsideGames/Refresh
fix bad malloc size
parent
d99bd756f4
commit
a60725fecc
|
@ -3400,9 +3400,7 @@ static uint8_t VULKAN_INTERNAL_CreateBuffer(
|
|||
|
||||
for (i = 0; i < subBufferCount; i += 1)
|
||||
{
|
||||
buffer->subBuffers[i] = SDL_malloc(
|
||||
sizeof(VulkanSubBuffer) * buffer->subBufferCount
|
||||
);
|
||||
buffer->subBuffers[i] = SDL_malloc(sizeof(VulkanSubBuffer));
|
||||
|
||||
vulkanResult = renderer->vkCreateBuffer(
|
||||
renderer->logicalDevice,
|
||||
|
|
Loading…
Reference in New Issue