Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 7:01:11 PM (18 years ago)
Author:
bensch
Message:

BugFix in the TextureLoader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/resource_texture.cc

    r9831 r9842  
    99    : NewResource(&ResourceTexture::type)
    1010{
    11   Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + "TEST");
     11  Resources::StorePointer* ptr = this->acquireResource(imageName + ',' + MultiType((int)target).getString());
    1212
    1313  if (ptr)
     
    2121    std::string fileName = this->NewResource::locateFile(imageName);
    2222    this->Texture::loadImage(fileName, target);
    23     this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + "TEST", Resources::KeepLevel(0), this->Texture::dataPointer()));
     23    this->NewResource::addResource(new ResourceTexture::TextureResourcePointer(imageName + ',' + MultiType((int)target).getString(), Resources::KeepLevel(0), this->Texture::dataPointer()));
    2424  }
    2525}
Note: See TracChangeset for help on using the changeset viewer.