Skip to main content
GameDev.net gamedev.net
🔒 Locked

GL_DEPTH_BITS query deprecated ???

Started by c-mos Sep 28, 2010 at 5:23 AM 0 replies 3.4k views
Original Post
c-mos
c-mos
Hello,
querying the depth bits setting in OpenGL 3.3 context gives strange results.

GLint depthbits = 0;glGetIntegerv(GL_DEPTH_BITS, &depthbits);


depthbits is still 0 after querying the depth bit state.
Is this enum deprecated ? I checke gl error and it returns 1280 - Invalid enum.
But it is defined in gl.h as well as in glew.h. Both have the same values defined
for this define. So I tried the same query with GL_DEPTH_FUNC and this returned
a value. I either cant query GL_RED_BITS, GL_BLUE_BITS etc.

Is GL_DEPTH_BITS a deprecated value ?

regards,
c-mos

rewolfer
rewolfer
yes it is deprecated

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.