diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-10-01 16:09:45 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-10-01 16:09:45 +0000 |
commit | 1fc4b21eb240cbb883b4fe734eaf113c17771e6b (patch) | |
tree | f109275428245d1ff0989a48e7f512da690f0138 /src/mesa/main | |
parent | 2794507289afcbfd6e2dd4f01b9fb404c507a587 (diff) |
check for GL_DEPTH_STENCIL_EXT
Diffstat (limited to 'src/mesa/main')
-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 2cc7eb5211..3dc3292dd7 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); |