diff options
author | Brian Paul <[email protected]> | 2002-04-20 17:54:55 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-04-20 17:54:55 +0000 |
commit | 1113e3266f1a9df3506fb80189bfe00d9681b55e (patch) | |
tree | 455e91c2b0436ede06eda3993914e305ecec7d8d /src/mesa/swrast/s_stencil.c | |
parent | 04df3bbe8e12d7ac44936d5de75933b28a51a8e3 (diff) |
fixed Width/Height cut&paste typo
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 5f5575de0d9..fd0b2973bc0 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -1,4 +1,4 @@ -/* $Id: s_stencil.c,v 1.23 2002/04/19 00:38:27 brianp Exp $ */ +/* $Id: s_stencil.c,v 1.24 2002/04/20 17:54:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1018,7 +1018,7 @@ _mesa_read_stencil_span( GLcontext *ctx, { SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; - const GLint bufHeight = (GLint) ctx->DrawBuffer->Width; + const GLint bufHeight = (GLint) ctx->DrawBuffer->Height; if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) { /* span is completely outside framebuffer */ @@ -1072,7 +1072,7 @@ _mesa_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y, SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLstencil *ssrc = stencil; const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; - const GLint bufHeight = (GLint) ctx->DrawBuffer->Width; + const GLint bufHeight = (GLint) ctx->DrawBuffer->Height; if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) { /* span is completely outside framebuffer */ |