Mesa (7.8): mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
Brian Paul
brianp at kemper.freedesktop.org
Mon Mar 8 08:39:00 PST 2010
Module: Mesa
Branch: 7.8
Commit: 614f490ca918f891cd70674ea7841d5b2a97e9ef
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=614f490ca918f891cd70674ea7841d5b2a97e9ef
Author: Brian Paul <brianp at vmware.com>
Date: Mon Mar 8 09:34:46 2010 -0700
mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
MESA_FORMAT_Z16 has no stencil bits.
---
src/mesa/main/texrender.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c
index 5a52853..b7b23ad 100644
--- 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;
More information about the mesa-commit
mailing list