if texture color table is enabled, use the color table's format to evaluate the texture env function

This commit is contained in:
Brian Paul 2003-07-24 13:33:22 +00:00
parent df03f8ed6d
commit 3a25e2350a
1 changed files with 3 additions and 0 deletions

View File

@ -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: