fix bad malloc size
continuous-integration/drone/push Build is passing Details

pull/1/head
cosmonaut 2021-01-31 17:16:32 -08:00
parent d99bd756f4
commit a60725fecc
1 changed files with 1 additions and 3 deletions

View File

@ -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,