From 3a25e2350a110031c14921b04c49232d1d4512ff Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Jul 2003 13:33:22 +0000 Subject: 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(+) (limited to 'src/mesa/swrast') diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index cb12472462..172401f594 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: -- cgit v1.2.3