GL_CLAMP_TO_EDGE Undeclared
This is a stange error. I thought that GL_CLAMP_TO_EDGE was a standard enum with opengl (no extension needed) but I keep getting the error
`GL_CLAMP_TO_EDGE' undeclared (first use this function)
(gcc)
The actual line is
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP_TO_EDGE);
There really isn't any reason why this shouldnt work.
Is this a recent addition?
All other opengl functions/params work
Any thoughts?
thanks [smile]
Sometimes old OpenGL headers don't have it defined, for some reason.
Just define this at the top of your code, and your problem should be fixed:
#ifndef GL_CLAMP_TO_EDGE
#define GL_CLAMP_TO_EDGE 0x812F
#endif
Just define this at the top of your code, and your problem should be fixed:
#ifndef GL_CLAMP_TO_EDGE
#define GL_CLAMP_TO_EDGE 0x812F
#endif
Well rather then take the quick fix for this one, I figure its probably not a good idea to have out of date stuff when It comes to OpenGl so where could I get V 1.2? I know generally that these are distrubuted through the grapics card vendors but I am having trouble finding the driver for my card
(ATI RADEON X600 SE)
(ATI RADEON X600 SE)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement