From 11c9ec4f7dc99850fc18b01f50656a13ac0036d6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Feb 2012 10:21:21 +0000 Subject: [PATCH] From Thomas Hogarth, build fix for IOS build --- src/osgViewer/GraphicsWindowIOS.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowIOS.mm b/src/osgViewer/GraphicsWindowIOS.mm index 88bf9e0f9..429c0b2c8 100644 --- a/src/osgViewer/GraphicsWindowIOS.mm +++ b/src/osgViewer/GraphicsWindowIOS.mm @@ -336,7 +336,7 @@ typedef std::map TouchPointsIdMapping; }else if(_win->getTraits()->depth == 24){ glRenderbufferStorageOES(GL_RENDERBUFFER_OES, GL_DEPTH_COMPONENT24_OES, _backingWidth, _backingHeight); } -#if defined(OSG_GLES2_AVAILABLE) +#if defined(GL_DEPTH_COMPONENT32_OES) else if(_win->getTraits()->depth == 32){ glRenderbufferStorageOES(GL_RENDERBUFFER_OES, GL_DEPTH_COMPONENT32_OES, _backingWidth, _backingHeight); }