projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33eb93b
)
Switched from GL_CLAMP to GL_CLAMP_TO_EDGE, fixes some blending artifacts on older...
author
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 7 Dec 2009 19:06:56 +0000
(19:06 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 7 Dec 2009 19:06:56 +0000
(19:06 +0000)
SVN-Revision: 6198
src/video/gl/gl_texture.cpp
patch
|
blob
|
history
diff --git
a/src/video/gl/gl_texture.cpp
b/src/video/gl/gl_texture.cpp
index
c703771
..
008e96f
100644
(file)
--- a/
src/video/gl/gl_texture.cpp
+++ b/
src/video/gl/gl_texture.cpp
@@
-175,11
+175,9
@@
GLTexture::set_texture_params()
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-#ifdef GL_CLAMP
- /* OpenGL ES doesn't support it */
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
-#endif
+
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
assert_gl("set texture params");
}