Re: don't wanna see this CRITICAL



----- Original Message -----
From: "Paul Davis" <pbd Op Net>
To: "Ignacio Nodal" <inodal teleline es>
Cc: "GTK-List" <gtk-list gnome org>
Sent: Wednesday, February 06, 2002 6:13 PM
Subject: Re: don't wanna see this CRITICAL


> >Is there any way to avoid this message from being prompt?
> >
> >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current):
> >assertion `GTK_WIDGET_REALIZED(gl_area)' failed.
> >
> >
> >I just want to call glViewport() in my InitGL() function. I know my
> >"gl_area" isn't still realized, but I don't care...
>
> you don't, but gtkglarea.c does. just call gtk_widget_realize() on
> your glarea before calling InitGL().
>
> --p

I know it does, hehehe, but if I call gtk_widget_realize() the glarea will
be shown, and I don't want it to be shown so soon.. even if I use
gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the
glarea.Is there anyway to realize it without been shown? :)

Thanks




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