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 a196f34..2342179 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: