On Fri Nov 11 21:16:19 2022 +0000, Esme Povirk wrote:
I think it might have been copied incorrectly when it was added to d2d? Line 45 here should be `new_capacity = element_count` to match what's in d3d10 and wined3d.
The point of that part, as far as I can tell, is to handle integer overflow without incorrectly allocating something too small. I think we expect the allocation to fail either way at that point, but that aside, arguably the wined3d version is better, and it looks like it's actually the newer one.