I'm not confortable with the idea of specifying identical OpenGL options at
*every* frame when it's not necessary. Why not just put them at
initialization time? Isn't it the standard way of doing it? Once a
particular state is specified, it doesn't change from one frame to the
other, does it?


2014-04-08 3:10 GMT+02:00 Luke Campagnola <notifications@github.com>:

> In examples/demo/atom.py:
>
> > @@ -174,7 +173,7 @@ def on_mouse_wheel(self, event):
> >          self.update()
> >
> >      def on_paint(self, event):
> > -        gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
> > +        gloo.clear()
>
> on_initialize is an old opengl convention that I think doesn't really make
> sense for the kind of things we are doing. It is almost always the case
> that code that would formerly appear in on_initialize should instead be
> placed at the beginning of on_paint (and from that perspective, just using
> gloo.clear(color) seems more natural).
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/vispy/vispy/pull/217/files#r11372950>
> .
>