History

avutil/vulkan_glslang: Fix build failure

compile_only isn't available until 13.1.0. Let default initialization set it to zero, so the code works with version before and after 13.1.0.

Zhao Zhili committed 1 year ago

Commit 7b0bd6c1 parent bd226fd1 file · +1 −1Browse files

Unified · Split

libavutil/vulkan_glslang.c+1−1
@@ -192,7 +192,7 @@ static int glslc_shader_compile(FFVulkanContext *s, FFVkSPIRVCompiler *ctx, · 191 unmodified lines
192 .optimize_size = 0,192 .optimize_size = 0,
193 .disassemble = 0,193 .disassemble = 0,
194 .validate = 1,194 .validate = 1,
195 .compile_only = 0,195 /* .compile_only = 0, */
196 };196 };
197#endif197#endif
198 198

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t