if texture color table is enabled, use the color table's format to evaluate the texture env function
This commit is contained in:
parent
df03f8ed6d
commit
3a25e2350a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue