[fltk.general] hide() / show() a Fl_Gl_Window

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

hide() / show() a Fl_Gl_Window Rob McDonald 23:00 Aug 05 top right image
  I now have a need to hide() a Fl_Gl_Window and then later show() it again.

The documentation appears to say that the OpenGL context is destroyed when the Fl_Gl_Window is hide()'ed.

When I try to show() the Fl_Gl_Window, I get a segfault in my draw() code that is called from Fl_Gl_Window::flush().

I think it is because I have not re-established the OpenGL context that was destroyed during the hide().

What kind of special care needs to be taken to be able to hide() / show() a Fl_Gl_Window?

Thanks for any help,

Rob

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/9b35d09a-3484-40b7-b2f2-2e930751fa13n%40googlegroups.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.