projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
614f490
)
mesa: add render-to-texture case for MESA_FORMAT_S8_Z24
author
Brian Paul
<brianp@vmware.com>
Mon, 8 Mar 2010 16:38:07 +0000
(09:38 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 8 Mar 2010 16:38:07 +0000
(09:38 -0700)
src/mesa/main/texrender.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texrender.c
b/src/mesa/main/texrender.c
index b7b23ade3065af3855e3f5aeab2b5f99d1e1f5db..9996a996c1f2ee72215a441ea7f8fe34ffe33de3 100644
(file)
--- 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;