mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
Merge pull request #17 from cochrane/fix-compiling-osx
Fix project not compiling on OS X 10.11.6.
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user