Problems with glTexParameteri
I'm doing a Skybox.
When I create a texture, I do this:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
but I see ugly lines. I have to change GL_CLAMP to GL_CLAMP_TO_EDGE but DevCpp not compiles good.
Some Idea??
thx
Hi,
You have to make sure GL_CLAMP_TO_EDGE has been defined, which you can do with ..
Regards,
ViLiO
You have to make sure GL_CLAMP_TO_EDGE has been defined, which you can do with ..
#ifndef GL_CLAMP_TO_EDGE#define GL_CLAMP_TO_EDGE 0x812F#endif
Regards,
ViLiO
You could also #include <gl/glext.h> on any version of dev within the last year or so.
Please don't cross post.
If at first you don't succeed, redefine success.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement