Changeset 8200

Show
Ignore:
Timestamp:
04/23/08 22:49:19
Author:
robert
Message:

Removed the mutable from the _image variable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/include/osg/Texture2D

    r7648 r8200  
    136136 
    137137 
    138         /** It's not ideal that _image is mutable, but it's required since 
    139           * Image::ensureDimensionsArePowerOfTwo() can only be called in a 
    140           * valid OpenGL context, and therefore within Texture::apply, which 
    141           * is const. */ 
    142138        ref_ptr<Image> _image; 
    143139 
  • OpenSceneGraph/trunk/include/osg/TextureRectangle

    r7648 r8200  
    135135        void applyTexImage_subload(GLenum target, Image* image, State& state, GLsizei& inwidth, GLsizei& inheight, GLint& inInternalFormat) const; 
    136136 
    137         // not ideal that _image is mutable, but it's required since 
    138         // Image::ensureDimensionsArePowerOfTwo() can only be called 
    139         // in a valid OpenGL context, and therefore within an Texture::apply 
    140         // which is const... 
    141         mutable ref_ptr<Image> _image; 
     137        ref_ptr<Image> _image; 
    142138 
    143139        // subloaded images can have different texture and image sizes.