Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
break; } }
else if (dst_ctype == CTYPE_LUMA)
{
*dst_component = dst->value.x;
This only works if we guarantee that all luma formats have a "red" component. Which is certainly expected to be the case, but...
I guess I'd like to see that guarantee enforced e.g. with an `assert(format->bits[1]);` here.