You can render to a pixmap and then copy the contents of the pixmap to the window with XCopyArea(). This will be similar to many implementations of glXSwapBuffers, however, many GL implementation allow synchronization with the refresh rate, while Xlib offers no such feature. Note that glXSwapBuffers executes an implicit glFlush, while XCopyArea does not execute an implicit XFlush. Mark. On Tue, 21 Mar 2006, Florent Monnier wrote: > Hi, > > I've started to learn the Xlib, and when there are a lot of things to draw on > the screen, the display is not regular. > With openGL this effect is corrected by using double buffering. > So I'm wondering how to use double buffering with the Xlib? > > I've got an answer on an other list which was to draw on another drawable, and > then to switch the 2 drawables with XCopyArea(), but all I get is a blanck > screen with this. > > -- > thanks in advance > _______________________________________________ > XFree86 mailing list > XFree86@xxxxxxxxxxx > http://XFree86.Org/mailman/listinfo/xfree86 > _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86