From c99a60c40d4ece363d37a5af895124f08a645c6b Mon Sep 17 00:00:00 2001 From: Brian Paul <brianp@vmware.com> Date: Tue, 19 May 2009 09:57:01 -0600 Subject: mesa: assign trb->Base.StencilBits in update_wrapper(). When we render to a depth/stencil texture there are stencil bits. --- src/mesa/main/texrender.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/texrender.c') diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c index 49de6f5b8ab..cc74d58fbd1 100644 --- a/src/mesa/main/texrender.c +++ b/src/mesa/main/texrender.c @@ -507,6 +507,7 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att) trb->Base.BlueBits = trb->TexImage->TexFormat->BlueBits; trb->Base.AlphaBits = trb->TexImage->TexFormat->AlphaBits; trb->Base.DepthBits = trb->TexImage->TexFormat->DepthBits; + trb->Base.StencilBits = trb->TexImage->TexFormat->StencilBits; } -- cgit v1.2.3