Ignore:
Timestamp:
Feb 2, 2014, 2:38:35 AM (6 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/VelocityArrowsSlice.cpp

    r3875 r4167  
    408408        _arrowsTex->activate();
    409409        glEnable(GL_TEXTURE_2D);
    410         glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
     410        glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
    411411
    412412        GLfloat atten[] = {1, 0, 0};
     
    415415        glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
    416416        glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, _maxPointSize);
    417         glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
     417        glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    418418
    419419        // FIXME: This vertex shader won't compile with ARB_vertex_program,
     
    456456
    457457        glActiveTexture(GL_TEXTURE0);
    458         glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_FALSE);
     458        glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_FALSE);
    459459        _arrowsTex->deactivate();
    460460    }
Note: See TracChangeset for help on using the changeset viewer.