Ignore:
Timestamp:
Feb 1, 2014 11:38:35 PM (7 years ago)
Author:
ldelgass
Message:

Texture environment is not part of texture object stored state, so don't set
environment mode before loading textures, should be done at render time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/PointSetRenderer.cpp

    r3627 r4167  
    7979    glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100);
    8080#ifdef USE_TEXTURE
    81     glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
     81    glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    8282#endif
    8383
     
    120120#ifdef USE_TEXTURE
    121121    _pointTexture->activate();
    122     glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
     122    glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
    123123#endif
    124124
     
    158158
    159159#ifdef USE_TEXTURE
    160     glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
     160    glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
    161161    _pointTexture->deactivate();
    162162#endif
Note: See TracChangeset for help on using the changeset viewer.