mesa: assign trb->Base.StencilBits in update_wrapper().
authorBrian Paul <brianp@vmware.com>
Tue, 19 May 2009 15:57:01 +0000 (09:57 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 19 May 2009 15:57:01 +0000 (09:57 -0600)
When we render to a depth/stencil texture there are stencil bits.

src/mesa/main/texrender.c

index 49de6f5b8abd4ea6a468991f4f16b7fff72543cf..cc74d58fbd181de19cf3f6d47d1ff50855f2de3a 100644 (file)
@@ -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;
 }