GPU: Shader: Fix parser not being consistent
Using `std::sort` does not garantee the initial order is kept for items with the same ranking value. Using `std::stable_sort` fixes the issue.
This commit is contained in:
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user