diff options
author | tnn <tnn@pkgsrc.org> | 2015-09-14 20:00:31 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-09-14 20:00:31 +0000 |
commit | 4fb1e48e69e018defa0727261d30792a31d84b66 (patch) | |
tree | cb8ca24e16d27d26f2bbbb2255ccd7a27331c00c /time | |
parent | 38d3d03aba74120c36df9ddb8f35542f9f1b7928 (diff) | |
download | pkgsrc-4fb1e48e69e018defa0727261d30792a31d84b66.tar.gz |
Fix build. Assume everyone has at least OpenGL 1.1 (1997) by now.
Diffstat (limited to 'time')
-rw-r--r-- | time/glclock/distinfo | 3 | ||||
-rw-r--r-- | time/glclock/patches/patch-GLExtensions.cpp | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/time/glclock/distinfo b/time/glclock/distinfo index 66282b17546..5591e3b195c 100644 --- a/time/glclock/distinfo +++ b/time/glclock/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.10 2013/08/30 22:41:16 joerg Exp $ +$NetBSD: distinfo,v 1.11 2015/09/14 20:00:31 tnn Exp $ SHA1 (glclock-6.0b6.0.tar.gz) = e276a516d543c9a6c04f06cfa046f89a476a8685 RMD160 (glclock-6.0b6.0.tar.gz) = f0bd207a47a01e3dc3d3da5b107b168a3210d2a3 Size (glclock-6.0b6.0.tar.gz) = 811803 bytes +SHA1 (patch-GLExtensions.cpp) = e2cd7d8f698a9f3dac3de819df9d316abcc0e822 SHA1 (patch-GLObject.H) = 62040251be8e6dba3d744640fdcb614eed30a306 SHA1 (patch-MString.H) = ee6ea5b6a68b5fcada448741ec8382f5d26893f3 SHA1 (patch-aa) = 922d73d2c864abde5ca9a39ca27d4740ceedb616 diff --git a/time/glclock/patches/patch-GLExtensions.cpp b/time/glclock/patches/patch-GLExtensions.cpp new file mode 100644 index 00000000000..7348c0e47f1 --- /dev/null +++ b/time/glclock/patches/patch-GLExtensions.cpp @@ -0,0 +1,25 @@ +$NetBSD: patch-GLExtensions.cpp,v 1.1 2015/09/14 20:00:31 tnn Exp $ + +glPolygonOffset has been core OpenGL since 1.1 and mesa no longer +declares it as an extension. + +--- GLextensions.cpp.orig 2000-06-18 14:25:12.000000000 +0000 ++++ GLextensions.cpp +@@ -1083,7 +1083,7 @@ char *IsSupported_texture_object(int fla + #ifdef GL_EXT_polygon_offset + if (has_EXT_polygon_offset) + { +- glPolygonOffsetEXT(units, bias) ; ++ glPolygonOffset(units, bias) ; + glEnable(GL_POLYGON_OFFSET_EXT) ; + + glGetFloatv(GL_POLYGON_OFFSET_FACTOR_EXT, &facter) ; +@@ -1108,7 +1108,7 @@ int IsSupported_EXT_polygon_offset() + return FALSE ; + #endif // #if defined(WIN32) && !defined(MESA) + +- p_glPolygonOffset = glPolygonOffsetEXT ; ++ p_glPolygonOffset = glPolygonOffset; + + DEF_GL_POLYGON_OFFSET_POINT = GL_POLYGON_OFFSET_EXT ; // EXT_polygon_offset では、すべて共通(有効なのは FILL のみ?) + DEF_GL_POLYGON_OFFSET_LINE = GL_POLYGON_OFFSET_EXT ; |