diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 4ed14241a..c2be3960f 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -200,7 +200,8 @@ namespace Resource for(unsigned int unit=0;unitgetTextureAttribute(unit, osg::StateAttribute::TEXTURE); - apply(texture); + if (texture) + apply(texture); } }