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

GL_DEPTH_TEXTURE_MODE

Started by AzureRain Aug 29, 2008 at 12:46 PM 1 replies 3.9k views
Original Post
AzureRain
AzureRain
Hi everyone, I get this error: error C2065: 'GL_DEPTH_TEXTURE_MODE' : undeclared identifier when I try to call glTexParameteri(GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE, GL_INTENSITY); I read that GL_DEPTH_TEXTURE_MODE is available only if the GL version is 1.4 or greater. Using glGetString(GL_VERSION), I've checked that my version is 2.1.2. So what is the problem here? Thanks in advance..
http://fashionhangover.blogspot.com
MARS_999
MARS_999
Are you using GLEE or GLEW to load extensions or you doing it yourself...
AzureRain
AzureRain
Hi,

thanks for replying. I neglected to include glext.h. I didn't realise I still had to include it even though my version was up to date. Doesn't quite make sense to me.
http://fashionhangover.blogspot.com

Topic Locked

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

Sign in to reply to this topic.