Moved the GL3 include to within the code block that handles GL1/GL2

This commit is contained in:
Robert Osfield 2010-12-20 12:17:40 +00:00
parent 959b8e6d1d
commit c9c329e7c4

View File

@ -37,14 +37,6 @@
#include <GLES2/gl2.h>
#endif
#elif defined(OSG_GL3_AVAILABLE)
#define GL3_PROTOTYPES 1
#include <GL3/gl3.h>
#ifndef GL_APIENTRY
#define GL_APIENTRY APIENTRY
#endif // GL_APIENTRY
#else
@ -111,6 +103,12 @@
#endif // WIN32
#if defined(OSG_GL3_AVAILABLE)
#define GL3_PROTOTYPES 1
#include <GL3/gl3.h>
#else
#ifndef __gl_h_
#ifdef __APPLE__
#include <OpenGL/gl.h>
@ -118,6 +116,7 @@
#include <GL/gl.h>
#endif
#endif
#endif
#ifndef GL_APIENTRY
#define GL_APIENTRY APIENTRY