make_copy should be a const method

This commit is contained in:
rdb 2011-06-03 16:29:13 +00:00
parent ee03d5c45d
commit d6c9ed46a2
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
// original.
////////////////////////////////////////////////////////////////////
INLINE PT(Texture) Texture::
make_copy() {
make_copy() const {
MutexHolder holder(_lock);
PT(Texture) tex = do_make_copy();
++(tex->_properties_modified);

View File

@ -4442,7 +4442,7 @@ do_rescale_texture() {
// Description:
////////////////////////////////////////////////////////////////////
PT(Texture) Texture::
do_make_copy() {
do_make_copy() const {
PT(Texture) tex = new Texture(get_name());
tex->do_assign(*this);
return tex;

View File

@ -202,7 +202,7 @@ protected:
PUBLISHED:
virtual ~Texture();
INLINE PT(Texture) make_copy();
INLINE PT(Texture) make_copy() const;
INLINE void clear();
INLINE void setup_texture(TextureType texture_type,
@ -542,7 +542,7 @@ protected:
const LoaderOptions &options);
bool do_rescale_texture();
virtual PT(Texture) do_make_copy();
virtual PT(Texture) do_make_copy() const;
void do_assign(const Texture &copy);
virtual void do_clear();
void do_setup_texture(TextureType texture_type, int x_size, int y_size,