From 0ca4c82e3ac500be607aa66ee23dd1a7a6767dbb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 Oct 2009 15:16:44 +0000 Subject: [PATCH] Fixed for GLES1 build --- examples/osgautocapture/osgautocapture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgautocapture/osgautocapture.cpp b/examples/osgautocapture/osgautocapture.cpp index 13b685422..01bab4a82 100644 --- a/examples/osgautocapture/osgautocapture.cpp +++ b/examples/osgautocapture/osgautocapture.cpp @@ -79,7 +79,9 @@ public: virtual void operator () (osg::RenderInfo& renderInfo) const { + #if !defined(OSG_GLES1_AVAILABLE) glReadBuffer(_readBuffer); + #endif OpenThreads::ScopedLock lock(_mutex); osg::GraphicsContext* gc = renderInfo.getState()->getGraphicsContext();