glfw: fix segfault in getPhysicalDevicePresentationSupport (#364)
This commit is contained in:
parent
71b25dc2a6
commit
786e0d6263
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ pub inline fn getPhysicalDevicePresentationSupport(
|
|||
internal_debug.assertInitialized();
|
||||
const v = c.glfwGetPhysicalDevicePresentationSupport(
|
||||
@ptrCast(c.VkInstance, vk_instance),
|
||||
@ptrCast(*c.VkPhysicalDevice, @alignCast(@alignOf(*c.VkPhysicalDevice), vk_physical_device)).*,
|
||||
@ptrCast(c.VkPhysicalDevice, vk_physical_device),
|
||||
queue_family,
|
||||
);
|
||||
getError() catch |err| return switch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue