On Tue Aug 30 13:26:41 2022 +0000, Matteo Bruni wrote:
I wonder if this should happen for all the mip level 0 elements of an array / cube texture (i.e. condition should just be !j instead).
We're creating the img_info structure only once (in D3DX10GetImageInfoFromMemory call) so there's no need to do it multiple times. Probably it should be moved outside of the loop to make it easier to read.