[Bf-committers] Images in Panels..
Peter K.H. Gragert
pkhgragert at gmail.com
Thu Aug 2 07:03:34 CEST 2012
ok ok, but how to find out the 'original' state, save and restore, with
A crash, I did not come across, using bgl ...
2012/8/1 Dalai Felinto <dfelinto at gmail.com>
> > The problem I have right now is that the texture does not display the
> transparency correctly, and that my gui seems to leak on the buttons (menu
> buttons) of blender spaces/areas/windows . I am now in the process of
> cleaning up my code to make sure I am not doing anything stupid with bgl.
> By the way, Blender doesn't set all the necessary opengl states required to
> draw the UI. If you are playing with bgl, it's kind of up to you to make
> sure you re-set any changed state to its original value.
> So this is not necessarily a bug, but more of a consequence of exposing a
> low-level such as bgl
> 2012/8/1 Campbell Barton <ideasman42 at gmail.com>
> > On Fri, Jul 27, 2012 at 9:08 PM, dimitris chloupis <thekilon at yahoo.co.uk
> > wrote:
> > > I did not say bgl is buggy , I only said that I am currently
> > experiencing problems I can't isolate with some really weird behavior. My
> > assumption is that is bugs with my code and not bgl.
> > >
> > > The problem I have right now is that the texture does not display the
> > transparency correctly, and that my gui seems to leak on the buttons
> > buttons) of blender spaces/areas/windows . I am now in the process of
> > cleaning up my code to make sure I am not doing anything stupid with bgl.
> > >
> > > If I find a bug with bgl rest assured I will report it to the bug
> > tracker with an example case attached to it.
> > >
> > > All I am saying is that using bgl can be rather challenging. For
> > using image.gl_load() outside a draw function will crash blender, yet
> > is no such warning in the docs and it looks like a weird behavior
> > image.gl_load() to be contained inside a draw . Doesn't it slow down
> > blender. Attaching a image.gl_free() for example inside the same draw
> > slow down blender considerably.
> > >
> > > So all I am saying bgl can be quite tricky to use.
> > Could you report a bug in gl_load() crashing blender?, I tried to redo
> > this but couldn't get blender to crash.
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers