glCopyTexSubImage2D and pbuffer

Thanks in advance - I am driving myself nuts on this one…

I am trying to read the color buffer from a pbuffer into a texture using glCopyTexSubImage2D. I am unclear what the pixel format of the texture should be:

Currently I define the texture with:

I copy the texture from a bound pbuffer with:

glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, TEX_SIZE,TEX_SIZE);

The texture is showing up as solid red, when it should be white (that is what the pbuffer is cleared to.)

The pbuffer is created with:

and the requested pixel format with:

wglGetPixelFormatAttribivARB states the returned format is r8 g8 b8 a8 with depth=24.

Thanks again for any help…

Probably it’s my same problem, see “A really strange problem with NVdia’s driver” in this same forum…

Which is your graphic board???