Skip to content

Commit 7fa0731

Browse files
committed
Initialize spv_options in glslang_program_SPIRV_generate
This will prevent any recurrence of issues like the one addressed by PR #3364.
1 parent ebb0a8b commit 7fa0731

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

SPIRV/CInterface/spirv_c_interface.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,9 @@ static EShLanguage c_shader_stage(glslang_stage_t stage)
8383

8484
GLSLANG_EXPORT void glslang_program_SPIRV_generate(glslang_program_t* program, glslang_stage_t stage)
8585
{
86-
glslang_spv_options_t spv_options;
87-
spv_options.generate_debug_info = false;
88-
spv_options.strip_debug_info = false;
89-
spv_options.emit_nonsemantic_shader_debug_info = false;
90-
spv_options.emit_nonsemantic_shader_debug_source = false;
86+
glslang_spv_options_t spv_options {};
9187
spv_options.disable_optimizer = true;
92-
spv_options.optimize_size = false;
93-
spv_options.disassemble = false;
9488
spv_options.validate = true;
95-
spv_options.compile_only = false;
9689

9790
glslang_program_SPIRV_generate_with_options(program, stage, &spv_options);
9891
}

0 commit comments

Comments
 (0)