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



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