diff --git a/source/blender/gpu/glsl_preprocess/shader_parser.hh b/source/blender/gpu/glsl_preprocess/shader_parser.hh index a2fc4796af3..aa2dd07d940 100644 --- a/source/blender/gpu/glsl_preprocess/shader_parser.hh +++ b/source/blender/gpu/glsl_preprocess/shader_parser.hh @@ -997,7 +997,7 @@ struct Parser { } /* Order mutations so that they can be applied in one pass. */ - std::sort(mutations_.begin(), mutations_.end()); + std::stable_sort(mutations_.begin(), mutations_.end()); int64_t offset = 0; for (const Mutation &mut : mutations_) {