--- a/hedgewars/uMisc.pas Fri Jul 10 16:47:45 2009 +0000
+++ b/hedgewars/uMisc.pas Fri Jul 10 16:56:37 2009 +0000
@@ -22,7 +22,7 @@
{$IFDEF GLES11}
gles11,
{$ELSE}
- GL,
+ GL,
{$ENDIF}
uFloat;
{$INCLUDE options.inc}
@@ -336,8 +336,8 @@
glBindTexture(GL_TEXTURE_2D, NewTexture^.id);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, buf);
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
-glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
+glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
end;