Skip to content

Commit

Permalink
Fixed all GL samples that where broken by the MacOSX commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziv Hendel authored and eddiecohen committed Dec 26, 2012
1 parent 5eebffc commit 3bc1169
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions Samples/ClosestPointViewer/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
* limitations under the License. *
* *
*****************************************************************************/
#if (XN_PLATFORM == XN_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#include "Viewer.h"

#if (ONI_PLATFORM == ONI_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/glut.h>
#endif

#include "Viewer.h"
#include "../Common/OniSampleUtilities.h"

#define GL_WIN_SIZE_X 1280
Expand Down
9 changes: 5 additions & 4 deletions Samples/MultiDepthViewer/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
#define _CRT_SECURE_NO_DEPRECATE 1
#endif

#if (XN_PLATFORM == XN_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#include "Viewer.h"

#if (ONI_PLATFORM == ONI_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/glut.h>
#endif

#include "Viewer.h"
#include "../Common/OniSampleUtilities.h"

#define GL_WIN_SIZE_X 1280
Expand Down
9 changes: 5 additions & 4 deletions Samples/SimpleViewer/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
#define _CRT_SECURE_NO_DEPRECATE 1
#endif

#if (XN_PLATFORM == XN_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#include "Viewer.h"

#if (ONI_PLATFORM == ONI_PLATFORM_MACOSX)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/glut.h>
#endif

#include "Viewer.h"
#include "../Common/OniSampleUtilities.h"

#define GL_WIN_SIZE_X 1280
Expand Down

0 comments on commit 3bc1169

Please sign in to comment.