Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-sports/foobillard/files: foobillard-3.0a-gl-clamp.patch
Date: Mon, 21 Feb 2011 20:29:08
Message-Id: 20110221202858.4279220057@flycatcher.gentoo.org
1 mr_bones_ 11/02/21 20:28:58
2
3 Added: foobillard-3.0a-gl-clamp.patch
4 Log:
5 work around issues with some drivers related to GL_CLAMP (bug #355821) - patch submitted by Alan Swanson
6
7 (Portage version: 2.1.9.25/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch?rev=1.1&content-type=text/plain
14
15 Index: foobillard-3.0a-gl-clamp.patch
16 ===================================================================
17 diff -ur foobillard-3.0a/src/table.c foobillard-3.0a-glclamp/src/table.c
18 --- foobillard-3.0a/src/table.c 2004-01-11 21:53:02.000000000 +0000
19 +++ foobillard-3.0a-glclamp/src/table.c 2011-02-21 09:14:36.000000000 +0000
20 @@ -1214,8 +1214,8 @@
21 GL_UNSIGNED_BYTE, tabletexdata);
22 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, options_tex_min_filter);
23 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, options_tex_mag_filter);
24 - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
25 - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
26 + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
27 + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
28 free( tabletexdata );
29 } else {
30 tabletexbind=0;