mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 07:13:35 +00:00
GPU: Add error message to Vulkan buffer creation error path
This commit is contained in:
committed by
Sam Lantinga
parent
6a449ae1f3
commit
cced3ce8b9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user