Skip to main content
gamedev.net
🔒 Locked

Problems with glTexParameteri

Started by JJcorps 3 replies 1.3k views
Original Post
JJcorps
JJcorps
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
ViLiO
ViLiO
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
JJcorps
JJcorps
The skybox works perfect

thx
Deranged
Deranged
You could also #include <gl/glext.h> on any version of dev within the last year or so.

Topic Locked

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

Sign in to reply to this topic.