PDA

View Full Version : GL_DEPTH_BITS changing within context???



vmh5
02-22-2007, 09:10 AM
Hi I'm confused. I've changed my pixelformat code around a bit and now I'm seeing that:

glGetIntegerv(GL_DEPTH_BITS, &depth_bits)

will return different values for the same context? First time I call it after setup it shows 24 bits of depth, which is how I set it up. After a renderpass I call it again and it's 0. How can this be? I've double checked that the context is the same. What would cause GL_DEPTH_BITS to change? I thought once set a PixelFormat can not be changed.

Thanks,

vmh5

vmh5
02-22-2007, 09:41 AM
OK I see it's after my FBO setup code. I wasn't setting up a depth buffer for the FBO.