copying from pbuffer to window

Hi,
I’m trying to use the ARB_pbuffer extension to refresh a window in response to WM_PAINT messages (so I don’t have to re-render the scene every time). I’ve got the rendering into the pbuffer working OK (or at least I think I have), but I can’t figure out how to get my image out of the pbuffer and into the main window…

Do I need to use the ARB_render_texture extension, or is there some other way I can copy from the pbuffer into the window (I was trying to keep the number of extensions I was using to a minimum)…?

Thanks!

Come on you can go for another extension :stuck_out_tongue:

With RTT and a quad, you are done. You can see how I did it here www.chez.com/dedebuffer (RENDER.C) if it can help you.