]> git.tdb.fi Git - libs/gl.git/commitdiff
Sort uniform blocks from SPIR-V modules
authorMikko Rasa <tdb@tdb.fi>
Sat, 10 Apr 2021 18:20:44 +0000 (21:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 10 Apr 2021 18:20:44 +0000 (21:20 +0300)
source/core/program.cpp

index 5b357f3966021dc546807aa99def9a855a9f9a99..0d8e6bd1e2ae09bfbe509c8b07e9bfd42d145219 100644 (file)
@@ -552,6 +552,7 @@ void Program::collect_uniforms()
                        block.uniforms.push_back(&uni);
                        uni.block = &block;
                }
+               sort(block.uniforms, uniform_location_compare);
                block.layout_hash = compute_layout_hash(block.uniforms);
        }