From: Mikko Rasa Date: Wed, 17 Nov 2021 13:30:35 +0000 (+0200) Subject: Collect uniforms which have a binding, even if they have no location X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=61fb989443c1b7dd503ab7bc276d1b4c3d737093;p=libs%2Fgl.git Collect uniforms which have a binding, even if they have no location --- diff --git a/source/core/program.cpp b/source/core/program.cpp index fdbfa6d4..bc61e1db 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -147,7 +147,7 @@ void Program::collect_uniforms(const SpirVModule &mod, const vector &us block_uniform_names.push_back(vector()); collect_block_uniforms(*v.struct_type, prefix, 0, block_uniform_names.back()); } - else if(v.storage==SpirVModule::UNIFORM_CONSTANT && v.location>=0) + else if(v.storage==SpirVModule::UNIFORM_CONSTANT && (v.location>=0 || v.binding>=0)) { block_uniform_names[0].push_back(v.name); reflect_data.uniforms.push_back(ReflectData::UniformInfo());