summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_texture.c3
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: