Call glXSwapBuffers instead of glCopyPixels if OpenGL read and draw buffers would perform a copy from back to front buffer. use with LD_PRELOAD=copy_pixels_swap_hack.so ${YOUR_PROGRAM} Refer to the ld.so(8) manpage for the path at which the preloaded shared objects is searched for.