PDA

View Full Version : Why is GL_DEPTH_BITS deprecated in GL 3.3?



V-man
03-13-2011, 12:02 PM
glGetIntegerv(GL_DEPTH_BITS, &DepthBits);

alder
03-14-2011, 11:01 AM
I think you are supposed to use glGetFramebufferAttachmentParameteriv with FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE as param (although I haven't yet figured out how to get it to work with the default framebuffer on AMD 11.2).

tksuoran
03-17-2011, 05:08 AM
I also have failed to query the default framebuffer and I wonder if this a bug or intentional.

Meanwhile you can use WGL, XGL, EGL or whatever you used to create the default framebuffer, to check what depth etc. you got.