Skip to content

Commit b32633f

Browse files
committed
Fix: buffer block with binding 0 has mismatching definitions.
1 parent dcf5c1c commit b32633f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Graphics/Archiver/src/Archiver_GL.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ class CompiledShaderGL final : public SerializedShaderImpl::CompiledShader
450450
Options.enable_420pack_extension = false;
451451
# endif
452452

453+
if (!Options.separate_shader_objects)
454+
{
455+
// We do not emit binding qualifiers when separate_shader_objects disable.
456+
// Let OpenGL driver do the binding qualifiers allocation.
457+
Options.version = 410;
458+
Options.enable_420pack_extension = false;
459+
}
460+
453461
CompilerGLSL Compiler{std::move(SPIRV)};
454462
Compiler.set_common_options(Options);
455463

0 commit comments

Comments
 (0)