On 18.02.2008, at 21:26, Roman Kantor wrote: > Hi, I have (Fl_Gl_Window) opengl window, and I have checked that > hardware is capable of double buffering so I have set this my window > as > double buffered. Yet my opengl drawing code within draw() is still > called even even if the content is static (and no explicit redraw() is > called) and I just drag another window in front of this opengl one, so > the double buffering seems not working.
When you drag another window over the OpenGL window, your top-level window may actually destroy the backbuffer. This is the case if there is only a single backbuffer for the full screen, which means that the same clipping applies for the front and back buffer. Different hardware render drivers may have very different ways of storing backbuffers and how they flip them (ether by setting flags, or maybe by copying the bytes over). To solve this, you can double-buffer into an offscreen buffer, but you may lose hardware acceleration. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

