Advertisement

Problems with glTexParameteri

Started by September 25, 2005 07:06 AM
3 comments, last by python_regious 19 years, 2 months ago
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 ..
#ifndef GL_CLAMP_TO_EDGE#define GL_CLAMP_TO_EDGE  0x812F#endif


Regards,
ViLiO
Richard 'ViLiO' Thomasv.net | Twitter | YouTube
Advertisement
The skybox works perfect

thx
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