From: grumbel Date: Mon, 7 Dec 2009 19:06:56 +0000 (+0000) Subject: Switched from GL_CLAMP to GL_CLAMP_TO_EDGE, fixes some blending artifacts on older... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f9be68c6f37d8f62aa5567ff933e3cad6a6243d7;p=supertux.git Switched from GL_CLAMP to GL_CLAMP_TO_EDGE, fixes some blending artifacts on older graphics cards git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6198 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/video/gl/gl_texture.cpp b/src/video/gl/gl_texture.cpp index c703771e4..008e96fa3 100644 --- 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"); }