Skip to content

Instantly share code, notes, and snippets.

@escherba
Created June 2, 2014 04:23
Show Gist options
  • Select an option

  • Save escherba/714f0869b01c2cd81c54 to your computer and use it in GitHub Desktop.

Select an option

Save escherba/714f0869b01c2cd81c54 to your computer and use it in GitHub Desktop.
freeglut (existing patch for compilation on Mac OS X using Homebrew)
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
+++ freeglut-2.8.1/include/GL/freeglut_std.h
@@ -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