diff options
author | Brian Paul <[email protected]> | 2003-07-24 13:33:22 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-07-24 13:33:22 +0000 |
commit | 3a25e2350a110031c14921b04c49232d1d4512ff (patch) | |
tree | 7801c51df84e83e73119c0344391d38c0729ad66 /src/mesa/swrast/s_texture.c | |
parent | df03f8ed6d6ad7e35e1f17b8af2d91d694ece483 (diff) |
if texture color table is enabled, use the color table's format to evaluate the texture env function
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r-- | src/mesa/swrast/s_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |