View Full Version : Difference between GL_CLAMP and GL_CLAMP_TO_EDGE
03-23-2011, 06:51 AM
what is the difference between GL_CLAMP and GL_CLAMP_TO_EDGE?
03-23-2011, 07:42 AM
If you ask, then just use GL_CLAMP_TO_EDGE.
The difference is that GL_CLAMP works correctly provided you have correctly set up a "texture border", otherwise you will see a blackish outline (default texture border color) around a textured quad with 0..1 texcoords. GL_CLAMP_TO_EDGE do no involve texture border.
Anyway this is detailed in the spec if you really want to know the crispy details.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.