From ed511d9fd320f5db6654a042db8b6b568c4314cc Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 10 Apr 2021 21:20:44 +0300 Subject: [PATCH] Sort uniform blocks from SPIR-V modules --- source/core/program.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.45.2