Offscreen rendering

nope. However, I added
glDrawBuffer(GL_NONE);

and then the COMPLETE test passed.

So now I need to get the values of the depth buffer - I was trying:


glReadBuffer(GL_FRAMEBUFFER_EXT);
glReadPixels(0, 0, width, height, GL_DEPTH_COMPONENT, GL_FLOAT, depths);


but they are all just black. How should I get the values into an array?

Thanks,
Dave

i dont understand this line
glReadBuffer(GL_FRAMEBUFFER_EXT);
did u mean :
glReadBuffer(GL_COLOR_ATTACHMENT0_EXT);