Ignore:
Timestamp:
Feb 1, 2014 11:38:35 PM (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/util/Fonts.cpp

    r4164 r4167  
    7979Fonts::begin()
    8080{
    81     glPushAttrib(GL_TRANSFORM_BIT | GL_ENABLE_BIT);
     81    glPushAttrib(GL_TRANSFORM_BIT | GL_ENABLE_BIT | GL_TEXTURE_BIT);
    8282    glEnable(GL_TEXTURE_2D);
    8383    glBindTexture(GL_TEXTURE_2D, _fonts[_fontIndex]._fontTextureID);
     
    9494    glLoadIdentity();
    9595
    96 #if 0
    97     glDisable(GL_BLEND);
    98     glEnable(GL_DEPTH_TEST);
    99 #else
    10096    glEnable(GL_BLEND);
    10197    glDisable(GL_DEPTH_TEST);
    102 #endif
    10398}
    10499
Note: See TracChangeset for help on using the changeset viewer.