ports/graphics/p5-OpenGL/files/patch-gl_util.c
Sunpoet Po-Chuan Hsieh bfa56b3a7e - Update to 0.66
- While I'm here, add missing trailing slash to WWW

Changes:	http://search.cpan.org/dist/OpenGL/Release_Notes
PR:		ports/161534
Submitted by:	Zhihao Yuan <lichray@gmail.com>
Feature safe:	yes
2011-12-05 03:24:27 +00:00

15 lines
372 B
C

--- gl_util.c.orig 2011-07-07 08:39:22.000000000 -0500
+++ gl_util.c 2011-10-12 22:09:31.520959086 -0500
@@ -756,6 +756,12 @@ int gl_component_count(GLenum format, GL
/* 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: