I can't figure out how to use db to prevent flickering.

I create a visual with 2 frames, associate a ggimesa context to it.
I want to render openGL and then use ggiPuts on the visual.

I've tried:

Mesa Swap only
- draw gl
- write text
- GGIMesaSwapBuffers
       -> text flickers, gl is ok

Manual Swap only
- frm=1-frm;
- ggiSetWriteFrame frm;
- draw gl
- write text
- ggiSetDisplayFrame frm;
       -> gl flickers, text is ok;

Both (desperatly...)
- frm=1-frm;
- ggiSetWriteFrame frm;
- draw gl
- write text
- GGIMesaSwapBuffers
- ggiSetDisplayFrame frm;
       -> everything flickers awfully

I use X as a target in ASYNC mode and flush at the end of each frame.
It seems that ggimesa won't draw in the WriteFrame.

Any idea what's wrong?

Reply via email to