On 12/30/14 21:42, Greg Ercolano wrote:
>> Forget about my gl problem for now. What happens if I try to display
>> a large fl_gl_window completely over a smaller one?
>
> Given your design where all four opengl widgets overlap in the
> same position, I'd say hide() three of the four gl widgets,
> and only show() the one you want.
I see you're doing that already, but without demonstration code
it's hard to know/replicate and offer help.
Curious what happens if you not only hide() but also change
the size/position of the 'other' windows so that they're
in an unused part of the window and small (ie. 5x5 in size).
By not overlapping the show()n window with the other hidden
windows, I'm curious if that affects the problem?
I know we have multi-widget opengl demos (i.e. the cube viewer),
but perhaps this is specific to GL display lists (which I don't
think our demos use).
If so, it could be opengl driver specific, as the hardware
might not like knowing about overlapping opengl.
If not, it could be an issue in FLTK's opengl code.
I thought I recall someone else having a problem with
GL display lists that involved a small mod to FLTK, which is
why I'm suggesting you use a more recent version of fltk than 1.3.1
(i.e. 1.3.3 or svn current). However, I have a suspicion the mods
I'm thinking of were OSX specific, whereas you're using windows.
(I think that issue had something to do with adding a call to make_current())