diff options
author | Brian Paul <[email protected]> | 2005-10-01 16:09:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-10-01 16:09:45 +0000 |
commit | 1fc4b21eb240cbb883b4fe734eaf113c17771e6b (patch) | |
tree | f109275428245d1ff0989a48e7f512da690f0138 /src/mesa/main/texstate.c | |
parent | 2794507289afcbfd6e2dd4f01b9fb404c507a587 (diff) |
check for GL_DEPTH_STENCIL_EXT
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 2cc7eb52114..3dc3292dd7d 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -3037,7 +3037,8 @@ update_texture_state( GLcontext *ctx ) if (format == GL_COLOR_INDEX) { format = GL_RGBA; /* a bit of a hack */ } - else if (format == GL_DEPTH_COMPONENT) { + else if (format == GL_DEPTH_COMPONENT + || format == GL_DEPTH_STENCIL_EXT) { format = texUnit->_Current->DepthMode; } calculate_derived_texenv(&texUnit->_EnvMode, texUnit->EnvMode, format); |