Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8095 in orxonox.OLD for branches/water/src/lib/graphics


Ignore:
Timestamp:
Jun 1, 2006, 6:36:53 PM (18 years ago)
Author:
stefalie
Message:

water: refreshed textures dont work if we use more than one texture unit in a material

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/water/src/lib/graphics/importer/material.cc

    r8089 r8095  
    397397  assert(textureNumber < this->textures.size());
    398398
    399   glActiveTexture(0);
     399  // HACK
     400  glActiveTexture(textureNumber);
    400401   glEnable(GL_TEXTURE_2D);
    401402   glBindTexture(GL_TEXTURE_2D, this->textures[textureNumber].getTexture());
Note: See TracChangeset for help on using the changeset viewer.