Vulkan: Use VK_NULL_HANDLE for handles, fixes 32-bit builds
Some Vulkan types are defined as "non dispatchable handles" and use a
different typedef on 32-bit and 64-bit systems (struct pointer on
64-bit, `uint64_t` otherwise).
0e78ffd1dc/include/vulkan/vulkan_core.h (L59-L65)
Contrarily to `NULL`, `nullptr` can't be converted to `uint64_t` so
build was now failing on 32-bit after converting the codebase from
using `NULL` to `nullptr`.
Fixes #37620.
This commit is contained in:
parent
94fab21348
commit
61342e5831
3 changed files with 11 additions and 10 deletions
|
|
@ -937,7 +937,7 @@ Error VulkanContext::_update_swap_chain(Window *window) {
|
|||
/*compositeAlpha*/ compositeAlpha,
|
||||
/*presentMode*/ swapchainPresentMode,
|
||||
/*clipped*/ true,
|
||||
/*oldSwapchain*/ nullptr,
|
||||
/*oldSwapchain*/ VK_NULL_HANDLE,
|
||||
};
|
||||
|
||||
err = fpCreateSwapchainKHR(device, &swapchain_ci, nullptr, &window->swapchain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue