Query MAX_TEXTURE_IMAGE_UNITS, not MAX_TEXTURE_UNITS