Skip to content

Instantly share code, notes, and snippets.

@yukota
Created June 26, 2013 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukota/5867264 to your computer and use it in GitHub Desktop.
Save yukota/5867264 to your computer and use it in GitHub Desktop.
freeglut patch MacOS10.7 later use gl3.h not gl.h.
diff -ur org/freeglut-2.8.1/include/GL/freeglut_std.h freeglut-2.8.1/include/GL/freeglut_std.h
--- org/freeglut-2.8.1/include/GL/freeglut_std.h 2012-11-19 21:45:34.000000000 +0900
+++ freeglut-2.8.1/include/GL/freeglut_std.h 2013-06-26 22:02:57.000000000 +0900
@@ -122,7 +122,7 @@
* Always include OpenGL and GLU headers
*/
#if __APPLE__
-# include <OpenGL/gl.h>
+# include <OpenGL/gl3.h>
# include <OpenGL/glu.h>
#else
# include <GL/gl.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment