Changeset 3346 in orxonox.OLD for orxonox/branches/parenting/src/importer/texture.cc
- Timestamp:
- Jan 5, 2005, 6:27:31 PM (19 years ago)
- File:
-
- 1 edited
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
Note: See TracChangeset
for help on using the changeset viewer.