Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2005, 10:26:37 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: ok, all the materials get rendered again
it was a little error in the MipMaps-creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/importer/texture.cc

    r3946 r3947  
    119119      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    120120      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
     121      // build the Texture
    121122      glTexImage2D(GL_TEXTURE_2D,
    122123                   0,
     
    127128                   GL_UNSIGNED_BYTE,
    128129                   image->pixels);
    129      
    130       /*gluBuild2DMipmaps(GL_TEXTURE_2D,
    131                         3,
     130      // build the MipMaps
     131      gluBuild2DMipmaps(GL_TEXTURE_2D,
     132                        GL_RGBA,
    132133                        w,
    133134                        h,
     
    135136                        GL_UNSIGNED_BYTE,
    136137                        image->pixels);
    137       */
     138     
    138139      SDL_FreeSurface(image); /* No longer needed */
    139140     
Note: See TracChangeset for help on using the changeset viewer.