don't use color table's format to determine texture env functions
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 11 Oct 2003 15:30:14 +0000 (15:30 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 11 Oct 2003 15:30:14 +0000 (15:30 +0000)
src/mesa/swrast/s_texture.c

index a196f34c275ad3e4ac071b251097a222cce1c827..2342179a4e6568740232f7fc02c0d3be0ae6fd08 100644 (file)
@@ -3873,9 +3873,6 @@ texture_apply( const GLcontext *ctx,
    else if (format == GL_DEPTH_COMPONENT) {
       format = texUnit->_Current->DepthMode;
    }
-   else if (texUnit->ColorTableEnabled) {
-      format = texUnit->ColorTable.Format;
-   }
 
    switch (texUnit->EnvMode) {
       case GL_REPLACE: