From 3a25e2350a110031c14921b04c49232d1d4512ff Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Jul 2003 13:33:22 +0000 Subject: [PATCH] if texture color table is enabled, use the color table's format to evaluate the texture env function --- src/mesa/swrast/s_texture.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2