if a layer has sublayers, the glview is expected to be the first sublayer