aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915tex/intel_tex_format.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-11-02 23:16:18 +0000
committerBrian Paul <[email protected]>2006-11-02 23:16:18 +0000
commitdd0830228b5b4d7d730068a607c68e8bf85c2906 (patch)
tree4bfdbfcbba06812931d838ef3542e2ee2294d7cd /src/mesa/drivers/dri/i915tex/intel_tex_format.c
parent05267501af5288a9d380df1306e5b74dcab1ec40 (diff)
Fix GL_EXT_packed_depth_stencil crash, but shadowtex still broken
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/intel_tex_format.c')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_tex_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_tex_format.c b/src/mesa/drivers/dri/i915tex/intel_tex_format.c
index d7612dcbaab..33281295dc2 100644
--- a/src/mesa/drivers/dri/i915tex/intel_tex_format.c
+++ b/src/mesa/drivers/dri/i915tex/intel_tex_format.c
@@ -136,6 +136,10 @@ intelChooseTextureFormat(GLcontext * ctx, GLint internalFormat,
case GL_DEPTH_COMPONENT32:
return &_mesa_texformat_z16;
+ case GL_DEPTH_STENCIL_EXT:
+ case GL_DEPTH24_STENCIL8_EXT:
+ return &_mesa_texformat_z24_s8;
+
default:
fprintf(stderr, "unexpected texture format %s in %s\n",
_mesa_lookup_enum_by_nr(internalFormat), __FUNCTION__);