GPU: Add error message to Vulkan buffer creation error path

This commit is contained in:
Lucas Murray
2026-01-05 09:10:27 +11:00
committed by Sam Lantinga
parent 6a449ae1f3
commit cced3ce8b9

View File

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