glfw: fix segfault in getPhysicalDevicePresentationSupport
(#364)
This commit is contained in:
parent
75b9f1b5ef
commit
19c7d0b0a6
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
Reference in a new issue