From 3c7d4021e9599660b95d1074201e32a8c6d4530d Mon Sep 17 00:00:00 2001 From: zac Date: Sat, 30 Aug 2025 18:24:00 +1000 Subject: [PATCH] change extension_names to use vk.extensions over hardcoded string --- examples/graphics_context.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/graphics_context.zig b/examples/graphics_context.zig index ea0c1b4..a907853 100644 --- a/examples/graphics_context.zig +++ b/examples/graphics_context.zig @@ -53,8 +53,8 @@ pub const GraphicsContext = struct { defer extension_names.deinit(allocator); // these extensions are to support vulkan in mac os // see https://github.com/glfw/glfw/issues/2335 - try extension_names.append(allocator, "VK_KHR_portability_enumeration"); - try extension_names.append(allocator, "VK_KHR_get_physical_device_properties2"); + try extension_names.append(allocator, vk.extensions.khr_portability_enumeration.name); + try extension_names.append(allocator, vk.extensions.khr_get_physical_device_properties_2.name); var glfw_exts_count: u32 = 0; const glfw_exts = c.glfwGetRequiredInstanceExtensions(&glfw_exts_count);