Re: don't wanna see this CRITICAL



>> >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? :)

i don't know one. however, you could invert the problem and call
InitGL() from a realize signal handler for the glarea.

--p



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