if texture color table is enabled, use the color table's format to evaluate the textu...
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Jul 2003 13:33:22 +0000 (13:33 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Jul 2003 13:33:22 +0000 (13:33 +0000)
src/mesa/swrast/s_texture.c

index cb124724624a00ab58d8bed52589f66363b3a4f2..172401f594b4bff037c674ed56b77a900871ae12 100644 (file)
@@ -3846,6 +3846,9 @@ 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: