Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/tests/texture.c:
return 0;
- }
+}
IDirect3DCubeTexture9_Release(tex);
+static DWORD get_expected_argb_color(D3DFORMAT format, const D3DXVECTOR4 *v) +{
- switch (format)
- {
- case D3DFMT_A8R8G8B8:
return (BYTE)(v->w * 255 + 0.5f) << 24
| (BYTE)(v->x * 255 + 0.5f) << 16
| (BYTE)(v->y * 255 + 0.5f) << 8
| (BYTE)(v->z * 255 + 0.5f);
- case D3DFMT_A1R5G5B5:
Probably the empty line was meant to go above the case rather than below.