mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
GPU: Add error message to Vulkan buffer creation error path
This commit is contained in:
parent
6a449ae1f3
commit
cced3ce8b9
1 changed files with 1 additions and 2 deletions
|
|
@ -4168,9 +4168,8 @@ static VulkanBuffer *VULKAN_INTERNAL_CreateBuffer(
|
|||
renderer->logicalDevice,
|
||||
buffer->buffer,
|
||||
NULL);
|
||||
|
||||
SDL_free(buffer);
|
||||
return NULL;
|
||||
SET_STRING_ERROR_AND_RETURN("Failed to bind memory for buffer!", NULL);
|
||||
}
|
||||
|
||||
buffer->usedRegion->vulkanBuffer = buffer; // lol
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue