fix mac build
This commit is contained in:
@@ -14,9 +14,8 @@ subject to the following restrictions:
|
||||
*/
|
||||
|
||||
#include "GLDebugFont.h"
|
||||
#include "OpenGLWindow/OpenGLInclude.h"
|
||||
|
||||
#ifdef DONT_USE_GLUT
|
||||
#include "OpenGLWindow/OpenGLInclude.h"
|
||||
#else
|
||||
#ifdef _WIN32//for glut.h
|
||||
#include <windows.h>
|
||||
|
||||
@@ -8,7 +8,7 @@ project "App_BasicDemoCustomOpenGL2"
|
||||
"../../btgui"
|
||||
}
|
||||
|
||||
defines { "DONT_USE_GLUT"}
|
||||
defines { "DONT_USE_GLUT", "USE_OPENGL2"}
|
||||
|
||||
initOpenGL()
|
||||
initGlew()
|
||||
|
||||
@@ -24,7 +24,11 @@ subject to the following restrictions:
|
||||
//#include <OpenGL/gl.h>
|
||||
//#include <OpenGL/glu.h>
|
||||
//#import <Cocoa/Cocoa.h>
|
||||
#ifdef USE_OPENGL2
|
||||
#include <OpenGL/gl.h>
|
||||
#else
|
||||
#include <OpenGL/gl3.h>
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "GlewWindows/GL/glew.h"
|
||||
|
||||
Reference in New Issue
Block a user