Fixed compile issue with Image.cpp and osgautocapture.cpp under GLES.

Fixed handling of EGLDisplay in EGL paths of GraphicsWindowX11
This commit is contained in:
Robert Osfield
2009-11-01 09:04:41 +00:00
parent 519c70ea5f
commit a4639398e8
4 changed files with 19 additions and 18 deletions

View File

@@ -79,8 +79,10 @@ public:
virtual void operator () (osg::RenderInfo& renderInfo) const
{
#if !defined(OSG_GLES1_AVAILABLE)
#if !defined(OSG_GLES1_AVAILABLE) && !!defined(OSG_GLES1_AVAILABLE)
glReadBuffer(_readBuffer);
#else
osg::notify(osg::NOTICE)<<"Error: GLES unable to do glReadBuffer"<<std::endl;
#endif
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);