diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index c12a88496..95f818b02 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -4409,7 +4409,7 @@ void Optimizer::TextureAtlasVisitor::optimize() bool t_repeat = texture->getWrap(osg::Texture2D::WRAP_T)==osg::Texture2D::REPEAT || texture->getWrap(osg::Texture2D::WRAP_T)==osg::Texture2D::MIRROR; - if (!s_repeat && !t_repeat) + if (texture->getImage() && !s_repeat && !t_repeat) { _builder.addSource(*titr); }