mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-10 15:54:58 +08:00
don't use color table's format to determine texture env functions
This commit is contained in:
parent
ad5cd6d337
commit
dd29e04bd6
@ -3873,9 +3873,6 @@ texture_apply( const GLcontext *ctx,
|
|||||||
else if (format == GL_DEPTH_COMPONENT) {
|
else if (format == GL_DEPTH_COMPONENT) {
|
||||||
format = texUnit->_Current->DepthMode;
|
format = texUnit->_Current->DepthMode;
|
||||||
}
|
}
|
||||||
else if (texUnit->ColorTableEnabled) {
|
|
||||||
format = texUnit->ColorTable.Format;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (texUnit->EnvMode) {
|
switch (texUnit->EnvMode) {
|
||||||
case GL_REPLACE:
|
case GL_REPLACE:
|
||||||
|
Loading…
Reference in New Issue
Block a user