Re: Problem deriving GLArea widget

You've discovered a bug in Gtk::GLArea::signal_create_context(). I've fixed it in the git repository.


Den 2016-04-22 kl. 22:01, skrev Bill McGrory:
Following up:
I got the included test program to work by making the following change in At this point, I'm not sure if this is a complete and total fix, as I need to see if my full featured class can be used correctly.

<   if(base && base->create_context) {
< Glib::RefPtr<Gdk::GLContext> retval(Glib::wrap((*base->create_context)(gobj()),true));
<       return retval;
<   }
>   if(base && base->create_context)
>     return Glib::wrap((*base->create_context)(gobj()));

I'm assuming it's the take_copy argument passed to wrap?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]