Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3536 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Mar 13, 2005, 11:57:19 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: GL_TEXTURE_2D-patch: now only enabled and disabled through Material

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/material.cc

    r3454 r3536  
    153153
    154154  if (this->diffuseTextureSet)
    155     glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture());
     155    {
     156      glEnable(GL_TEXTURE_2D);
     157      glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture());
     158    }
    156159  else
    157     glBindTexture(GL_TEXTURE_2D, 0);
    158  
     160    {
     161      glDisable(GL_TEXTURE_2D);
     162      glBindTexture(GL_TEXTURE_2D, 0);
     163    }
    159164}
    160165
Note: See TracChangeset for help on using the changeset viewer.