Changeset 10460 in orxonox.OLD for trunk/src/lib/graphics/importer/texture_data.cc
- Timestamp:
- Jan 28, 2007, 9:26:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture_data.cc
r8363 r10460 21 21 #include "compiler.h" 22 22 23 #include "sdlincl.h"24 23 25 24 /** … … 31 30 this->texture = 0; 32 31 this->image = NULL; 32 this->height = 0.; 33 this->width = 0.; 33 34 } 34 35 … … 56 57 bool TextureData::loadSurface(SDL_Surface* surface, GLenum target) 57 58 { 59 if( surface != NULL) 60 { 61 this->height = surface->h; 62 this->width = surface->w; 63 } 64 58 65 if (Texture::getTextureEnableState()) 59 66 {
Note: See TracChangeset
for help on using the changeset viewer.