]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.cpp
Sort uniform blocks from SPIR-V modules
[libs/gl.git] / source / core / program.cpp
index 5b357f3966021dc546807aa99def9a855a9f9a99..0d8e6bd1e2ae09bfbe509c8b07e9bfd42d145219 100644 (file)
@@ -552,6 +552,7 @@ void Program::collect_uniforms()
                        block.uniforms.push_back(&uni);
                        uni.block = █
                }
+               sort(block.uniforms, uniform_location_compare);
                block.layout_hash = compute_layout_hash(block.uniforms);
        }