mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer

MESA_FORMAT_Z16 has no stencil bits.

(cherry picked from commit 614f490ca9)
This commit is contained in:
Brian Paul 2010-03-08 10:00:17 -07:00
parent 4cc8d1d79f
commit 1e431f0454

View file

@ -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;