Changeset 10924 for OpenSceneGraph/trunk/src/osg/Texture2D.cpp
- Timestamp:
- 01/07/10 13:14:47 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/Texture2D.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/Texture2D.cpp
r10865 r10924 14 14 #include <osg/GLExtensions> 15 15 #include <osg/Texture2D> 16 #include <osg/ImageSequence>17 16 #include <osg/State> 18 17 #include <osg/Notify> … … 111 110 if (_image == image) return; 112 111 113 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))112 if (_image.valid() && _image->requiresUpdateCall()) 114 113 { 115 114 setUpdateCallback(0); … … 119 118 _image = image; 120 119 _modifiedCount.setAllElementsTo(0); 121 122 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))123 { 124 setUpdateCallback(new Image Sequence::UpdateCallback());120 121 if (_image.valid() && _image->requiresUpdateCall()) 122 { 123 setUpdateCallback(new Image::UpdateCallback()); 125 124 setDataVariance(osg::Object::DYNAMIC); 126 125 }
