diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-28 21:30:44 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-28 21:30:44 +0000 |
commit | 76ef5a399346891c9df0bb2d7e74a67544d847ba (patch) | |
tree | 28fe2579d65c36178e0aa0ef956dd31fe90a323a | |
parent | bae4b31566c9a4925a73dccade44cee8a2214bc4 (diff) |
fixed parameter mis-ordering bug in Driver.StencilSpan calls
-rw-r--r-- | src/mesa/main/stencil.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index e07e1833ae..d5722e7fd3 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -1,8 +1,8 @@ -/* $Id: stencil.c,v 1.16 2000/04/11 21:26:57 brianp Exp $ */ +/* $Id: stencil.c,v 1.16.4.1 2000/11/28 21:30:44 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 3.4 * * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * @@ -1351,11 +1351,11 @@ clear_hardware_stencil_buffer( GLcontext *ctx ) const GLstencil clearVal = (ctx->Stencil.Clear & mask); GLstencil stencil[MAX_WIDTH]; GLint i; - (*ctx->Driver.ReadStencilSpan)(ctx, x, y, width, stencil); + (*ctx->Driver.ReadStencilSpan)(ctx, width, x, y, stencil); for (i = 0; i < width; i++) { stencil[i] = (stencil[i] & invMask) | clearVal; } - (*ctx->Driver.WriteStencilSpan)(ctx, x, y, width, stencil, NULL); + (*ctx->Driver.WriteStencilSpan)(ctx, width, x, y, stencil, NULL); } } else { @@ -1366,7 +1366,7 @@ clear_hardware_stencil_buffer( GLcontext *ctx ) stencil[i] = ctx->Stencil.Clear; } for (y = ctx->DrawBuffer->Ymin; y <= ctx->DrawBuffer->Ymax; y++) { - (*ctx->Driver.WriteStencilSpan)(ctx, x, y, width, stencil, NULL); + (*ctx->Driver.WriteStencilSpan)(ctx, width, x, y, stencil, NULL); } } } @@ -1384,11 +1384,11 @@ clear_hardware_stencil_buffer( GLcontext *ctx ) for (y = 0; y < height; y++) { GLstencil stencil[MAX_WIDTH]; GLuint i; - (*ctx->Driver.ReadStencilSpan)(ctx, x, y, width, stencil); + (*ctx->Driver.ReadStencilSpan)(ctx, width, x, y, stencil); for (i = 0; i < width; i++) { stencil[i] = (stencil[i] & invMask) | clearVal; } - (*ctx->Driver.WriteStencilSpan)(ctx, x, y, width, stencil, NULL); + (*ctx->Driver.WriteStencilSpan)(ctx, width, x, y, stencil, NULL); } } else { @@ -1402,7 +1402,7 @@ clear_hardware_stencil_buffer( GLcontext *ctx ) stencil[i] = ctx->Stencil.Clear; } for (y = 0; y < height; y++) { - (*ctx->Driver.WriteStencilSpan)(ctx, x, y, width, stencil, NULL); + (*ctx->Driver.WriteStencilSpan)(ctx, width, x, y, stencil, NULL); } } } |