Module: Mesa Branch: mesa_7_7_branch Commit: 1e431f04544fb7dfc19e20d3903962a88e4e88ba URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e431f04544fb7dfc19e20d3903962a88e4e88ba
Author: Brian Paul <[email protected]> Date: Mon Mar 8 10:00:17 2010 -0700 mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer MESA_FORMAT_Z16 has no stencil bits. (cherry picked from commit 614f490ca918f891cd70674ea7841d5b2a97e9ef) --- 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 37cb2cc..ac5fdf8 100644 --- a/src/mesa/main/texrender.c +++ b/src/mesa/main/texrender.c @@ -504,7 +504,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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
