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/ParticleSystem.cpp

    r3618 r4167  
    16281628            glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
    16291629            glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f);
    1630             glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
     1630            glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    16311631
    16321632            cgGLBindProgram(_particleVP);
     
    16831683            glBindTexture(GL_TEXTURE_2D, ::SpotTexID);
    16841684            glEnable(GL_TEXTURE_2D);
    1685             //glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f );
    1686             glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f );
    1687 
    1688             glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 1.0f);
    1689             glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, 100.0f);
    1690             glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
     1685            //glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f);
     1686            glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f);
     1687
     1688            glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
     1689            glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f);
     1690            glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    16911691
    16921692            glEnableClientState(GL_VERTEX_ARRAY);
Note: See TracChangeset for help on using the changeset viewer.