gl/cocoa: include gl3.h to have GL_CONTEXT_PROFILE_MASK

This commit is contained in:
Julien Isorce 2014-11-03 23:08:09 +00:00 committed by Tim-Philipp Müller
parent f44b430bc7
commit ef707ee9d5

View file

@ -70,6 +70,10 @@
# ifdef __APPLE__
# include <OpenGL/OpenGL.h>
# include <OpenGL/gl.h>
# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
# include <OpenGL/gl3.h>
# endif
# include <OpenGL/glu.h>
# else
# include <GL/gl.h>