Merge pull request #45843 from lawnjelly/ewok_backbuffer_sort_fix

Batching - prevent reordering items over a copybackbuffer
This commit is contained in:
Rémi Verschelde 2021-02-09 14:13:58 +01:00 committed by GitHub
commit 85f92a2463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2716,6 +2716,11 @@ PREAMBLE(bool)::sort_items_from(int p_start) {
return false;
}
// disallow sorting over copy back buffer
if (second.item->copy_back_buffer) {
return false;
}
// which neighbour to test
int test_last = 2 + bdata.settings_item_reordering_lookahead;
for (int test = 2; test < test_last; test++) {