Skip to content

Commit

Permalink
Merge pull request #17 from cochrane/fix-compiling-osx
Browse files Browse the repository at this point in the history
Fix project not compiling on OS X 10.11.6.
  • Loading branch information
XProger committed Nov 26, 2016
2 parents ff9b87f + 93bbb30 commit 20b4f01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#include <AGL/agl.h>
/*
* In compatibility mode, Mac OS X only supports OpenGL 2 (no VAO), but it does
* support the Apple-specific VAO extension which is older and in all relevant
* parts 100% compatible. So use those functions instead.
*/
#define glBindVertexArray glBindVertexArrayAPPLE
#define glGenVertexArrays glGenVertexArraysAPPLE
#define glDeleteVertexArrays glDeleteVertexArraysAPPLE
#elif __EMSCRIPTEN__
#define MOBILE 1
#include <emscripten.h>
Expand Down

0 comments on commit 20b4f01

Please sign in to comment.