From 616e69c80745cdc872b1db5ad63b919d82d9e9cb Mon Sep 17 00:00:00 2001 From: DialecticalMaterialist <170803884+DialecticalMaterialist@users.noreply.github.com> Date: Sat, 2 Aug 2025 23:43:17 +0200 Subject: [PATCH] OpenGL SPIR-V support The support was already there but somebody forgot to allow to use the calling conventions spirv_fragment and spirv_vertex when having opengl as os tag. --- src/Zcu.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zcu.zig b/src/Zcu.zig index 90b3edd001..c444d57bf6 100644 --- a/src/Zcu.zig +++ b/src/Zcu.zig @@ -4510,7 +4510,7 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu }, .stage2_spirv => switch (cc) { .spirv_device, .spirv_kernel => true, - .spirv_fragment, .spirv_vertex => target.os.tag == .vulkan, + .spirv_fragment, .spirv_vertex => target.os.tag == .vulkan or target.os.tag == .opengl, else => false, }, };