From: Mikko Rasa Date: Sat, 10 Apr 2021 18:20:44 +0000 (+0300) Subject: Sort uniform blocks from SPIR-V modules X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ed511d9fd320f5db6654a042db8b6b568c4314cc;p=libs%2Fgl.git Sort uniform blocks from SPIR-V modules --- diff --git a/source/core/program.cpp b/source/core/program.cpp index 5b357f39..0d8e6bd1 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -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); }