glfw: fix segfault in getPhysicalDevicePresentationSupport (#364)

This commit is contained in:
Daniel 2022-06-24 13:10:06 -04:00 committed by GitHub
parent 75b9f1b5ef
commit 19c7d0b0a6

View file

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