From Thomas Halgarth, mods for Iphone GL headers

This commit is contained in:
Robert Osfield
2009-12-08 17:41:18 +00:00
parent 65c6fdd8ca
commit 17b8ee1508

View File

@@ -82,11 +82,23 @@
#if defined(OSG_GLES1_AVAILABLE)
#include <GLES/gl.h>
#ifdef __APPLE__
//if its apple include the target defines so we can check for iphone
#include "TargetConditionals.h"
#include <OpenGLES/ES1/gl.h>
#else
#include <GLES/gl.h>
#endif
#elif defined(OSG_GLES2_AVAILABLE)
#include <GLES2/gl2.h>
#ifdef __APPLE__
//if its apple include the target defines so we can check for iphone
#include "TargetConditionals.h"
#include <OpenGLES/ES2/gl.h>
#else
#include <GLES2/gl2.h>
#endif
#elif defined(OSG_GL3_AVAILABLE)