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)
|
for (i = 0; i < subBufferCount; i += 1)
|
||||||
{
|
{
|
||||||
buffer->subBuffers[i] = SDL_malloc(
|
buffer->subBuffers[i] = SDL_malloc(sizeof(VulkanSubBuffer));
|
||||||
sizeof(VulkanSubBuffer) * buffer->subBufferCount
|
|
||||||
);
|
|
||||||
|
|
||||||
vulkanResult = renderer->vkCreateBuffer(
|
vulkanResult = renderer->vkCreateBuffer(
|
||||||
renderer->logicalDevice,
|
renderer->logicalDevice,
|
||||||
|
|
Loading…
Reference in New Issue