On 24 April 2014 12:10, Stefan D��singer <stefan@codeweavers.com> wrote:Note that this inverts the ordering of the pixel format and sub-level
> - �� ��if (!(surface->surface_desc.u4.ddpfPixelFormat.dwFlags & (DDPF_PALETTEINDEXED1 | DDPF_PALETTEINDEXED2
> - �� �� �� �� �� ��| DDPF_PALETTEINDEXED4 | DDPF_PALETTEINDEXED8 | DDPF_PALETTEINDEXEDTO8)))
> - �� �� �� ��return DDERR_INVALIDPIXELFORMAT;
> -
> �� �� ��if (surface->surface_desc.ddsCaps.dwCaps2 & DDSCAPS2_MIPMAPSUBLEVEL)
> �� �� �� �� ��return DDERR_NOTONMIPMAPSUBLEVEL;
>
validation. That might even be correct, but the associated test
doesn't cover that case at all.