Merge "Ensure there's a GL context before creating a Layer"