mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 12:50:35 +01:00
fix minor glitch with GL_DEPTH_COMPONENT textures
This commit is contained in:
parent
089645799c
commit
2db8fe2906
1 changed files with 4 additions and 1 deletions
|
|
@ -2946,7 +2946,7 @@ update_texture_state( GLcontext *ctx )
|
|||
if (texUnit->_ReallyEnabled)
|
||||
ctx->Texture._EnabledUnits |= (1 << unit);
|
||||
|
||||
if ( texUnit->EnvMode == GL_COMBINE ) {
|
||||
if (texUnit->EnvMode == GL_COMBINE) {
|
||||
texUnit->_CurrentCombine = & texUnit->Combine;
|
||||
}
|
||||
else {
|
||||
|
|
@ -2954,6 +2954,9 @@ update_texture_state( GLcontext *ctx )
|
|||
if (format == GL_COLOR_INDEX) {
|
||||
format = GL_RGBA; /* a bit of a hack */
|
||||
}
|
||||
else if (format == GL_DEPTH_COMPONENT) {
|
||||
format = texUnit->_Current->DepthMode;
|
||||
}
|
||||
calculate_derived_texenv(&texUnit->_EnvMode, texUnit->EnvMode, format);
|
||||
texUnit->_CurrentCombine = & texUnit->_EnvMode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue