12 Dec
2022
12 Dec
'22
4:28 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/tests/texture.c:
+ {XCOORD, ZERO, YCOORDINV}, + {XCOORD, YCOORDINV, ONE}, + {XCOORDINV, YCOORDINV, ZERO} + };
- if (SUCCEEDED(hr)) + DWORD x, y, m, f, levels, size, value, expected; + D3DXVECTOR3 coord, texelsize; + D3DLOCKED_RECT lock_rect; + D3DSURFACE_DESC desc; + D3DXVECTOR4 out; + HRESULT hr; + + levels = IDirect3DCubeTexture9_GetLevelCount(texture); + + for (m = 0; m < levels; m++) Given that you're touching these lines anyway, you can probably replace the postincrement operator with preincrement (we use the latter by default).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1682#note_19499