From 17b8ee15087b00d2debef80d6369949e58549bec Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 8 Dec 2009 17:41:18 +0000 Subject: [PATCH] From Thomas Halgarth, mods for Iphone GL headers --- include/osg/GL | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/osg/GL b/include/osg/GL index a86d01bfc..3b1119b86 100644 --- a/include/osg/GL +++ b/include/osg/GL @@ -82,11 +82,23 @@ #if defined(OSG_GLES1_AVAILABLE) - #include + #ifdef __APPLE__ + //if its apple include the target defines so we can check for iphone + #include "TargetConditionals.h" + #include + #else + #include + #endif #elif defined(OSG_GLES2_AVAILABLE) - #include + #ifdef __APPLE__ + //if its apple include the target defines so we can check for iphone + #include "TargetConditionals.h" + #include + #else + #include + #endif #elif defined(OSG_GL3_AVAILABLE)