PDA

View Full Version : Pbuffer as back buffer?



NitroGL
01-24-2003, 10:20 AM
Is there any way to attach a Pbuffer as the back buffer? (blit pbuffer->framebuffer front)

The pbuffer is floating point BTW (frame buffer is standard 32bit 8-8-8-8).

This is on a Radeon 9700.

Thanks.

ehart
01-24-2003, 01:46 PM
Generally the way you do this is with "make current read", and then do a glCopyPixels. The other option is to make the pbuffer and texture, and draw a quad.

-Evan

NitroGL
01-24-2003, 04:35 PM
I tried CopyPixels, but it just crashes. (driver bug perhaps?)

NitroGL
01-24-2003, 11:34 PM
Ok... Nevermind, I got it to work (had to change the double buffer settings).

ehart
01-25-2003, 06:20 AM
Well, it should never crash unless you feed it a bad pointer. Please mail either devrel or myself off-line with a description of the crash if possible.

-Evan

NitroGL
01-25-2003, 09:13 AM
I've emailed you a simple application that shows the problem.

cass
01-25-2003, 09:18 AM
glCopyPixels() doesn't take any pointers, so I can't think of any reason that it would be allowed to terminate the app.

ehart
01-25-2003, 10:05 AM
Sorry for any confusion about my post. The comment about pointers was intended as a general statement about when a user's mistake is allowed to cause termination. Also let me ammend my statment and say that the user passing in a bad index or offset for a pointer is also allowed to cause termination.

-Evan