Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3346 in orxonox.OLD


Ignore:
Timestamp:
Jan 5, 2005, 6:27:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: SLD_Surface now gets deleted in loadImage(SLD_image)

Location:
orxonox/branches/parenting/src/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/importer/texture.cc

    r3345 r3346  
    122122  this->pImage = new Image;
    123123  this->pImage->data = NULL;
     124  this->map = NULL;
    124125  this->texture = 0;
    125126}
     
    214215  if (imgNameWithPath)
    215216    {
    216       SDL_Surface* map;
    217       map=IMG_Load(imgNameWithPath);
     217      this->map=IMG_Load(imgNameWithPath);
    218218      if(!map)
    219219        {
     
    239239 
    240240      this->loadTexToGL (this->pImage);
     241      SDL_FreeSurface(map);
     242      this->pImage->data = NULL;
    241243    }
    242244  else
  • orxonox/branches/parenting/src/importer/texture.h

    r3345 r3346  
    6666  Image* pImage;
    6767  GLuint texture;
     68  SDL_Surface* map;
    6869  char* searchTextureInPaths(char* texName) const;
    6970  inline void swap(unsigned char &a, unsigned char &b);
Note: See TracChangeset for help on using the changeset viewer.