check for GL_DEPTH_STENCIL_EXT
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 1 Oct 2005 16:09:45 +0000 (16:09 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 1 Oct 2005 16:09:45 +0000 (16:09 +0000)
src/mesa/main/texstate.c

index 2cc7eb5..3dc3292 100644 (file)
@@ -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);