From: Brian Paul Date: Mon, 8 Mar 2010 16:38:07 +0000 (-0700) Subject: mesa: add render-to-texture case for MESA_FORMAT_S8_Z24 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26aa870a0d80f8b93239a98c558402c3c9ce6445;p=mesa.git mesa: add render-to-texture case for MESA_FORMAT_S8_Z24 --- diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c index b7b23ade306..9996a996c1f 100644 --- a/src/mesa/main/texrender.c +++ b/src/mesa/main/texrender.c @@ -497,6 +497,11 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att) trb->Base.DataType = GL_UNSIGNED_INT_24_8_EXT; trb->Base._BaseFormat = GL_DEPTH_STENCIL; } + else if (trb->TexImage->TexFormat == MESA_FORMAT_S8_Z24) { + trb->Base.Format = MESA_FORMAT_S8_Z24; + trb->Base.DataType = GL_UNSIGNED_INT_24_8_EXT; /* not 8_24 */ + trb->Base._BaseFormat = GL_DEPTH_STENCIL; + } else if (trb->TexImage->TexFormat == MESA_FORMAT_Z16) { trb->Base.Format = MESA_FORMAT_Z16; trb->Base.DataType = GL_UNSIGNED_SHORT;