Changeset 5228 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Sep 23, 2005, 11:38:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r5212 r5228 112 112 glGenTextures(1, &texture); 113 113 glBindTexture(GL_TEXTURE_2D, texture); 114 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_ NEAREST);115 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_ NEAREST);114 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 115 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 116 116 // build the Texture 117 117 glTexImage2D(GL_TEXTURE_2D, … … 133 133 134 134 SDL_FreeSurface(image); /* No longer needed */ 135 135 glBindTexture(GL_TEXTURE_2D, 0); 136 136 return texture; 137 137 }
Note: See TracChangeset
for help on using the changeset viewer.