channelsForTextureFormat now checks if GL_LUMINANCE defined