mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08: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,
|
renderer->logicalDevice,
|
||||||
buffer->buffer,
|
buffer->buffer,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
SDL_free(buffer);
|
SDL_free(buffer);
|
||||||
return NULL;
|
SET_STRING_ERROR_AND_RETURN("Failed to bind memory for buffer!", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer->usedRegion->vulkanBuffer = buffer; // lol
|
buffer->usedRegion->vulkanBuffer = buffer; // lol
|
||||||
|
|||||||
Reference in New Issue
Block a user