summaryrefslogtreecommitdiff
path: root/graphics/gliv/files/patch-src__matrix.c
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2006-03-31 03:18:49 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2006-03-31 03:18:49 +0000
commita0c56be26c115e6bf49226cd388223fb9156bc93 (patch)
treeb859532a98084b2ca40c53a51ac99d14e62b5d24 /graphics/gliv/files/patch-src__matrix.c
parentupgrade to 1.2.4 (diff)
upgrade to 1.9.5
PR: 95111 Submitted by: Ports Fury
Diffstat (limited to 'graphics/gliv/files/patch-src__matrix.c')
-rw-r--r--graphics/gliv/files/patch-src__matrix.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/gliv/files/patch-src__matrix.c b/graphics/gliv/files/patch-src__matrix.c
new file mode 100644
index 000000000000..8b9eb5f7c294
--- /dev/null
+++ b/graphics/gliv/files/patch-src__matrix.c
@@ -0,0 +1,14 @@
+--- src/matrix.c.orig Tue Nov 22 07:30:44 2005
++++ src/matrix.c Mon Mar 20 14:13:22 2006
+@@ -35,6 +35,11 @@
+ extern options_struct *options;
+ extern GlivImage *current_image;
+
++#if !defined(INFINITY)
++#define HUGE_VALF (float)HUGE_VAL
++#define INFINITY HUGE_VALF
++#endif
++
+ /*
+ * OpenGL uses a transposed matrix, we use a 'normal' one,
+ * we transpose it just before glLoadMatrix().