[Bf-blender-cvs] [b17578a943d] tmp-workbench-rewrite2: Use std::swap
Miguel Pozo
noreply at git.blender.org
Tue Jan 10 15:55:20 CET 2023
Commit: b17578a943da17a510fedc023b2c9c58b2d88da4
Author: Miguel Pozo
Date: Mon Jan 9 18:17:32 2023 +0100
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rBb17578a943da17a510fedc023b2c9c58b2d88da4
Use std::swap
===================================================================
M source/blender/draw/engines/workbench/workbench_effect_antialiasing.cc
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.cc b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.cc
index 91040390876..39b46c7ac1e 100644
--- a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.cc
+++ b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.cc
@@ -39,7 +39,7 @@ class TaaSamples {
/* Swap center sample to the start of the array */
if (closest_index != 0) {
- swap_v2_v2(samples[0], samples[closest_index]);
+ std::swap(samples[0], samples[closest_index]);
}
/* Sort list based on farthest distance with previous. */
@@ -53,7 +53,7 @@ class TaaSamples {
index = j;
}
}
- swap_v2_v2(samples[i + 1], samples[index]);
+ std::swap(samples[i + 1], samples[index]);
}
}
More information about the Bf-blender-cvs
mailing list