Always use stable_sort to avoid flickering with alpha blending

This commit is contained in:
Benau 2022-09-03 09:27:06 +08:00
parent d55eb56d78
commit b0b9f44aeb

View File

@ -193,7 +193,7 @@ void GEVulkanDrawCall::generate()
break;
}
}
std::sort(visible_nodes.begin(), visible_nodes.end(),
std::stable_sort(visible_nodes.begin(), visible_nodes.end(),
[&nodes_area](const Nodes& a, const Nodes& b)
{
return nodes_area.at(a.first) < nodes_area.at(b.first) ;