summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-11-22 03:06:33 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-11-22 03:06:33 +0000
commit49122146ed8bd9c189f40e44f3e7eccd1113609a (patch)
tree1141314105066914dcd7a7c268f0b4d8f3c8fe9e /games-arcade/moleinvasion/files
parentInitial addition. (diff)
downloadgentoo-2-49122146ed8bd9c189f40e44f3e7eccd1113609a.tar.gz
gentoo-2-49122146ed8bd9c189f40e44f3e7eccd1113609a.tar.bz2
gentoo-2-49122146ed8bd9c189f40e44f3e7eccd1113609a.zip
Fix possible segfault
(Portage version: 2.2_rc51/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade/moleinvasion/files')
-rw-r--r--games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch
new file mode 100644
index 000000000000..357f1bc2b466
--- /dev/null
+++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch
@@ -0,0 +1,18 @@
+--- src/MoleInvasion.c
++++ src/MoleInvasion.c
+@@ -159,6 +159,7 @@
+ else
+ printf("Video mode set to %ux%u at %u bpp\n",800, 600, bpp);
+
++ if(g_opengl) {
+ /* pour opengl */
+ glEnable (GL_TEXTURE_2D);
+ glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+@@ -169,6 +170,7 @@
+ glEnable( GL_BLEND );
+ glMatrixMode(GL_PROJECTION);
+ /* fin opengl */
++ }
+
+ /* titre */
+ SDL_WM_SetCaption ("Mole Invasion", NULL);