glstate: Try to match the number of channels in internal format.