View Full Version : Difference between GL_CLAMP and GL_CLAMP_TO_EDGE
03-23-2011, 07:51 AM
what is the difference between GL_CLAMP and GL_CLAMP_TO_EDGE?
03-23-2011, 08: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.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.