created glcontext in gui