X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/919ae91ad7ccde24fd1a68c946b30fb35e5dfc5b..2b96d0fb4be7d684c17987d74f8f92d0cfe345b5:/samples/opengl/isosurf/isosurf.cpp diff --git a/samples/opengl/isosurf/isosurf.cpp b/samples/opengl/isosurf/isosurf.cpp index 6ab145c64b..3d3bda3dc9 100644 --- a/samples/opengl/isosurf/isosurf.cpp +++ b/samples/opengl/isosurf/isosurf.cpp @@ -32,8 +32,18 @@ #include "wx/timer.h" #include "wx/glcanvas.h" -#include -#include +#ifdef __WXMAC__ +# ifdef __DARWIN__ +# include +# include +# else +# include +# include +# endif +#else +# include +# include +#endif #include "isosurf.h" @@ -255,7 +265,12 @@ bool MyApp::OnInit(void) #else int gl_attrib[20] = { WX_GL_RGBA, WX_GL_MIN_RED, 1, WX_GL_MIN_GREEN, 1, WX_GL_MIN_BLUE, 1, WX_GL_DEPTH_SIZE, 1, - WX_GL_DOUBLEBUFFER, None }; + WX_GL_DOUBLEBUFFER, +# ifdef __WXMAC__ + GL_NONE }; +# else + None }; +# endif #endif if(!doubleBuffer)