projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6fbf8
)
mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
author
Brian Paul
<brianp@vmware.com>
Mon, 8 Mar 2010 16:34:46 +0000
(09:34 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 8 Mar 2010 16:35:28 +0000
(09:35 -0700)
MESA_FORMAT_Z16 has no stencil bits.
src/mesa/main/texrender.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texrender.c
b/src/mesa/main/texrender.c
index 5a528535c0482d357c950481444e492fc6446a6e..b7b23ade3065af3855e3f5aeab2b5f99d1e1f5db 100644
(file)
--- a/
src/mesa/main/texrender.c
+++ b/
src/mesa/main/texrender.c
@@
-500,7
+500,7
@@
update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att)
else if (trb->TexImage->TexFormat == MESA_FORMAT_Z16) {
trb->Base.Format = MESA_FORMAT_Z16;
trb->Base.DataType = GL_UNSIGNED_SHORT;
- trb->Base._BaseFormat = GL_DEPTH_
STENCIL
;
+ trb->Base._BaseFormat = GL_DEPTH_
COMPONENT
;
}
else if (trb->TexImage->TexFormat == MESA_FORMAT_Z32) {
trb->Base.Format = MESA_FORMAT_Z32;