summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-10-01 16:09:45 +0000
committerBrian Paul <[email protected]>2005-10-01 16:09:45 +0000
commit1fc4b21eb240cbb883b4fe734eaf113c17771e6b (patch)
treef109275428245d1ff0989a48e7f512da690f0138 /src
parent2794507289afcbfd6e2dd4f01b9fb404c507a587 (diff)
check for GL_DEPTH_STENCIL_EXT
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstate.c3
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);