summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-03-08 09:38:07 -0700
committerBrian Paul <[email protected]>2010-03-08 09:38:07 -0700
commit26aa870a0d80f8b93239a98c558402c3c9ce6445 (patch)
tree5e92d6bf773206ba0f263562fcff86e2f91363bd /src/mesa
parent614f490ca918f891cd70674ea7841d5b2a97e9ef (diff)
mesa: add render-to-texture case for MESA_FORMAT_S8_Z24
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texrender.c5
1 files changed, 5 insertions, 0 deletions
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;