forked from mirror/vulkan-zig
Merge pull request #34 from InKryption/patch-1
Copy array of strings instead of assuming lifetime
This commit is contained in:
@@ -32,7 +32,7 @@ pub const ShaderCompileStep = struct {
|
||||
self.* = .{
|
||||
.step = Step.init(.custom, "shader-compile", builder.allocator, make),
|
||||
.builder = builder,
|
||||
.glslc_cmd = glslc_cmd,
|
||||
.glslc_cmd = builder.dupeStrings(glslc_cmd),
|
||||
.shaders = std.ArrayList(Shader).init(builder.allocator),
|
||||
};
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user