untested
authornemo
Fri, 10 Jul 2009 16:56:37 +0000
changeset 2250 70f344c911ea
parent 2249 ac8a762ccb4e
child 2251 bf0b59d3536a
untested
hedgewars/uConsts.pas
hedgewars/uMisc.pas
--- a/hedgewars/uConsts.pas	Fri Jul 10 16:47:45 2009 +0000
+++ b/hedgewars/uConsts.pas	Fri Jul 10 16:56:37 2009 +0000
@@ -24,7 +24,7 @@
 {$IFDEF GLES11}
 	gles11,
 {$ELSE}
-	GL,
+    GL,
 {$ENDIF}
 	uLocale;
 
@@ -195,6 +195,8 @@
     //some opengl headers do not have these macros (unused)
     GL_BGR  = $80E0;
     GL_BGRA = $80E1;
+    GL_CLAMP_TO_EDGE = $812F;
+
 
 	cifRandomize = $00000001;
 	cifTheme     = $00000002;
--- 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;