Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8376 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc


Ignore:
Timestamp:
Jun 14, 2006, 12:13:16 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: no more seg-fault when copying a Texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture.cc

    r8366 r8376  
    163163Texture::~Texture()
    164164{}
     165
     166/**
     167 * @brief copies the Data from texture to this texture.
     168 * @param texture the Texture to copy into this one.
     169 * @returns the Texture.
     170 */
     171Texture& Texture::operator=(const Texture& texture)
     172{
     173  this->data = texture.data;
     174
     175  return *this;
     176}
    165177
    166178
Note: See TracChangeset for help on using the changeset viewer.