Changeset 5860 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc
- Timestamp:
- Dec 1, 2005, 8:38:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r5859 r5860 116 116 bool Texture::rebuild() 117 117 { 118 if (this->texture != 0 && glIsTexture(this->texture))118 if (this->texture != 0) 119 119 { 120 glDeleteTextures(1,&this->texture); 120 if (glIsTexture(this->texture)) 121 glDeleteTextures(1,&this->texture); 121 122 this->setTexture(0); 122 123 }
Note: See TracChangeset
for help on using the changeset viewer.