mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 16:40:36 +02:00
vulkan: use vk_object_zalloc() for acceleration structs
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40385>
This commit is contained in:
parent
e5bb3edad8
commit
730054ca47
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ vk_common_CreateAccelerationStructureKHR(VkDevice _device,
|
|||
VK_FROM_HANDLE(vk_device, device, _device);
|
||||
VK_FROM_HANDLE(vk_buffer, buffer, pCreateInfo->buffer);
|
||||
|
||||
struct vk_acceleration_structure *accel_struct = vk_object_alloc(
|
||||
struct vk_acceleration_structure *accel_struct = vk_object_zalloc(
|
||||
device, pAllocator, sizeof(struct vk_acceleration_structure),
|
||||
VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue