Yes, user can generally pass options to the glutInit function, so it is generally:

glut.glutInit(sys.argv)

plus, user might want to use the glutInitDisplayString:
glutInitDisplayString("rgba stencil double samples=8 hidpi") 

for example ("hidpi is for osx and requires a modified glut)

By the way: inizialized -> initialized.



On 27 Jan 2014, at 06:08, Almar Klein <notifications@github.com> wrote:

> In vispy/app/backends/glut.py:
> 
> > @@ -118,6 +118,10 @@ def _vispy_get_native_app(self):
> >                  pass
> >          if not self._inizialized:
> >              glut.glutInit()  # todo: maybe allow user to give args?
> > +            glut.glutInitDisplayMode(glut.GLUT_RGBA |
> > +                                     glut.GLUT_DOUBLE |
> > +                                     glut.GLUT_STENCIL |
> > +                                     glut.GLUT_DEPTH)
> 
> This is the only bit that I am unsure about. @rougier do you think this is ok?
> 
> —
> Reply to this email directly or view it on GitHub.
>