CyanPrime
CyanPrime

Reputation: 5193

'GL_CLAMP_TO_EDGE' was not declared in this scope

How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so what gives?

Upvotes: 5

Views: 4616

Answers (1)

leetNightshade
leetNightshade

Reputation: 2829

"It''s part of OpenGL 1.2, which is why it isn''t in Microsoft''s OpenGL 1.1 header.

Add this line to your code somewhere. BTW, you should probably check the GL version at runtime before using it.

#define GL_CLAMP_TO_EDGE 0x812F

"

I just googled it and found this. Does it help?

Upvotes: 7

Related Questions