gl: make surface and context readable by users