summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-02-21 20:28:58 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-02-21 20:28:58 +0000
commit3f94628991676d11a5e4b6289b12b374e8f1a470 (patch)
tree1c2691727a10e66446608d9daa69fab00c4dab0b /games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch
parentapp-office/grisbi: Bump to 0.8.0, clean up ebuild (diff)
downloadgentoo-2-3f94628991676d11a5e4b6289b12b374e8f1a470.tar.gz
gentoo-2-3f94628991676d11a5e4b6289b12b374e8f1a470.tar.bz2
gentoo-2-3f94628991676d11a5e4b6289b12b374e8f1a470.zip
work around issues with some drivers related to GL_CLAMP (bug #355821) - patch submitted by Alan Swanson
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch')
-rw-r--r--games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch
new file mode 100644
index 000000000000..972d14cabb0a
--- /dev/null
+++ b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch
@@ -0,0 +1,14 @@
+diff -ur foobillard-3.0a/src/table.c foobillard-3.0a-glclamp/src/table.c
+--- foobillard-3.0a/src/table.c 2004-01-11 21:53:02.000000000 +0000
++++ foobillard-3.0a-glclamp/src/table.c 2011-02-21 09:14:36.000000000 +0000
+@@ -1214,8 +1214,8 @@
+ GL_UNSIGNED_BYTE, tabletexdata);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, options_tex_min_filter);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, options_tex_mag_filter);
+- 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);
+ free( tabletexdata );
+ } else {
+ tabletexbind=0;