diff --git a/src/osg/ImageStream.cpp b/src/osg/ImageStream.cpp index 452af8d2c..cf3815d29 100644 --- a/src/osg/ImageStream.cpp +++ b/src/osg/ImageStream.cpp @@ -21,11 +21,11 @@ ImageStream::ImageStream(): { setDataVariance(DYNAMIC); -#ifndef __APPLE__ +//#ifndef __APPLE__ // disabled under OSX for time being while we resolve why PBO // doesn't function properly under OSX. setPixelBufferObject(new PixelBufferObject(this)); -#endif +//#endif } diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index af510a697..a488637b1 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -58,6 +58,8 @@ using namespace osgPresentation; +#define USE_CLIENT_STORAGE_HINT 0 + class SetToTransparentBin : public osg::NodeVisitor { public: @@ -431,8 +433,9 @@ void SlideShowConstructor::addLayer(bool inheritPreviousLayers, bool defineAsBas texture->setResizeNonPowerOfTwoHint(false); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); +#if USE_CLIENT_STORAGE_HINT texture->setClientStorageHint(true); - +#endif backgroundStateSet->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON); @@ -748,7 +751,9 @@ public: texture->setResizeNonPowerOfTwoHint(false); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); +#if USE_CLIENT_STORAGE_HINT texture->setClientStorageHint(true); +#endif } } } @@ -826,8 +831,9 @@ osg::Geometry* SlideShowConstructor::createTexturedQuadGeometry(const osg::Vec3& texture->setResizeNonPowerOfTwoHint(false); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); +#if USE_CLIENT_STORAGE_HINT texture->setClientStorageHint(true); - +#endif stateset->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON); @@ -841,9 +847,10 @@ osg::Geometry* SlideShowConstructor::createTexturedQuadGeometry(const osg::Vec3& imageStream->pause(); OSG_INFO<<"Reading video "<getFileName()<setClientStorageHint(true); +#endif }