diff options
author | Brian Paul <[email protected]> | 2005-09-22 05:19:57 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-22 05:19:57 +0000 |
commit | 676d0accf5cc43e86057b14cfb8bba9316932582 (patch) | |
tree | eaefcddf33d92bd92adac7106701e99dc2b5da85 /src/mesa/swrast/s_stencil.c | |
parent | f1e2826856d7df00d0e98106b93ddab51b26ff04 (diff) |
Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,
BlueBits, etc fields.
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 238beddc358..b465b5a2c68 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -1127,7 +1127,7 @@ _swrast_write_stencil_span(GLcontext *ctx, GLint n, GLint x, GLint y, void _swrast_clear_stencil_buffer( GLcontext *ctx, struct gl_renderbuffer *rb ) { - const GLubyte stencilBits = rb->ComponentSizes[0]; + const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; const GLuint mask = ctx->Stencil.WriteMask[0]; const GLuint invMask = ~mask; const GLuint clearVal = (ctx->Stencil.Clear & mask); |