From 4b6e2f97a3797dfb0cf1d32a39ae8638552e5588 Mon Sep 17 00:00:00 2001 From: Dejan Lesjak Date: Fri, 17 Dec 2004 19:34:05 +0000 Subject: After a bit of discussion with CPAN maintainer of this module, make it compile with Mesa 6, but in a way that hopefully doesn't break with older GL. Pointed out by: dosirak via kris --- graphics/p5-OpenGL/files/patch-gl_util.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 graphics/p5-OpenGL/files/patch-gl_util.c (limited to 'graphics/p5-OpenGL/files/patch-gl_util.c') diff --git a/graphics/p5-OpenGL/files/patch-gl_util.c b/graphics/p5-OpenGL/files/patch-gl_util.c new file mode 100644 index 000000000000..fc3002d1f98d --- /dev/null +++ b/graphics/p5-OpenGL/files/patch-gl_util.c @@ -0,0 +1,24 @@ +--- gl_util.c.orig Wed Jun 20 09:03:02 2001 ++++ gl_util.c Tue Dec 14 18:41:08 2004 +@@ -1,5 +1,8 @@ + + #include "gl_util.h" ++#if defined(HAVE_GLEXT_H) && !defined(GL_BLEND_EQUATION_EXT) ++#include ++#endif + + int gl_texparameter_count(GLenum pname) + { +@@ -708,6 +711,12 @@ + + /* 18 */ + #ifdef GL_EXT_cmyka ++# ifndef GL_CMYK ++# define GL_CMYK GL_CMYK_EXT ++# endif ++# ifndef GL_CMYKA ++# define GL_CMYKA GL_CMYKA_EXT ++# endif + case GL_CMYK: + n = 4; break; + case GL_CMYKA: -- cgit v1.2.3