- Timestamp:
 - Jan 5, 2005, 6:27:31 PM (21 years ago)
 - Location:
 - orxonox/branches/parenting/src/importer
 - Files:
 - 
          
- 2 edited
 
- 
          texture.cc (modified) (3 diffs)
 - 
          texture.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
orxonox/branches/parenting/src/importer/texture.cc
r3345 r3346 122 122 this->pImage = new Image; 123 123 this->pImage->data = NULL; 124 this->map = NULL; 124 125 this->texture = 0; 125 126 } … … 214 215 if (imgNameWithPath) 215 216 { 216 SDL_Surface* map; 217 map=IMG_Load(imgNameWithPath); 217 this->map=IMG_Load(imgNameWithPath); 218 218 if(!map) 219 219 { … … 239 239 240 240 this->loadTexToGL (this->pImage); 241 SDL_FreeSurface(map); 242 this->pImage->data = NULL; 241 243 } 242 244 else  - 
        
orxonox/branches/parenting/src/importer/texture.h
r3345 r3346 66 66 Image* pImage; 67 67 GLuint texture; 68 SDL_Surface* map; 68 69 char* searchTextureInPaths(char* texName) const; 69 70 inline void swap(unsigned char &a, unsigned char &b);  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






