Changeset 10924 for OpenSceneGraph/trunk/src/osg/Texture1D.cpp
- Timestamp:
- 01/07/10 13:14:47 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/Texture1D.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/Texture1D.cpp
r10867 r10924 13 13 #include <osg/GLExtensions> 14 14 #include <osg/Texture1D> 15 #include <osg/ImageSequence>16 15 #include <osg/State> 17 16 #include <osg/GLU> … … 98 97 if (_image == image) return; 99 98 100 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))99 if (_image.valid() && _image->requiresUpdateCall()) 101 100 { 102 101 setUpdateCallback(0); … … 110 109 _modifiedCount.setAllElementsTo(0); 111 110 112 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))113 { 114 setUpdateCallback(new Image Sequence::UpdateCallback());111 if (_image.valid() && _image->requiresUpdateCall()) 112 { 113 setUpdateCallback(new Image::UpdateCallback()); 115 114 setDataVariance(osg::Object::DYNAMIC); 116 115 }
