glstate: Dump sampler parameters up to MAX_COMBINED_TEXTURE_IMAGE_UNITS.

And not just up to MAX_TEXTURE_COORDS, which is zero on core profile
contexts.

Thanks to Min-Yu Huang for pointing this out.