PDA

View Full Version : Wrong Interpretation of y-offset in WGL_ARB_buffer_region ?



frieder
03-26-2002, 02:57 PM
I have a problem with using save and restore buffer region with depth and color buffer at the same time: It works fine with a y-offset of 0 when restoring the buffers. The offset also works perfect with depth OR color buffer. But when I try to save and restore depth- AND colorbuffer the y-offset is interpreted wrong for the depth-buffer: A positive offset moves the color up and the depth down. (Using only depth, a positive offset moves the depth up...)
My Code:
My = CreateBufferRegionARB(dc,0, WGL_DEPTH_BUFFER_BIT_ARB | WGL_BACK_COLOR_BUFFER_BIT_ARB);
SaveBufferRegionARB(My,0,0,800,600)
RestoreBufferRegionARB(My,0,100,800,600,0,0);

zeckensack
03-26-2002, 04:41 PM
Maybe ...

Post your graphics card or chipset, OS and driver version.

frieder
03-27-2002, 01:58 AM
I tried it on TNT, GF1(256 and DDR), GF2 and GF3. I tried it on Win2000 using Detonator 21.81 and on Win98 using Detonator 12.90