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

    r3935 r4167  
    334334    glGenTextures(1, &_finalColorTex);
    335335    glBindTexture(GL_TEXTURE_2D, _finalColorTex);
    336 
    337     glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    338     glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    339     glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
    340 
     336    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
     337    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    341338#if defined(HAVE_FLOAT_TEXTURES) && defined(USE_HALF_FLOAT)
    342339    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F_ARB, winWidth, winHeight, 0,
     
    408405    glGenTextures(1, &_finalColorTex);
    409406    glBindTexture(GL_TEXTURE_2D, _finalColorTex);
    410 
    411407    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    412408    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    413     glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
    414 
    415409#if defined(HAVE_FLOAT_TEXTURES) && defined(USE_HALF_FLOAT)
    416410    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F_ARB, winWidth, winHeight, 0,
Note: See TracChangeset for help on using the changeset viewer.