From: Brian Paul Date: Thu, 24 Jul 2003 13:33:22 +0000 (+0000) Subject: if texture color table is enabled, use the color table's format to evaluate the textu... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a25e2350a110031c14921b04c49232d1d4512ff;p=mesa.git if texture color table is enabled, use the color table's format to evaluate the texture env function --- diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index cb124724624..172401f594b 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -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: