summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-19 10:02:55 -0600
committerBrian Paul <[email protected]>2009-05-19 10:02:55 -0600
commit3ed7e9bfcc7f013518a8d56844b78fb1993687f7 (patch)
treec8aaccf4df7be0b502ef023c3fa9ccd16e7715c1
parent46a2aad2cfec0ae54bc1a3ba5aacf6f59065d64b (diff)
mesa: assign trb->Base.StencilBits in update_wrapper().
When we render to a depth/stencil texture there are stencil bits. (cherry picked from commit c99a60c40d4ece363d37a5af895124f08a645c6b)
-rw-r--r--src/mesa/main/texrender.c1
1 files changed, 1 insertions, 0 deletions
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;
}