summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_span.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_span.c')
-rw-r--r--src/mesa/swrast/s_span.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 77c013f0d3..9712efb919 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1,4 +1,4 @@
-/* $Id: s_span.c,v 1.40 2002/04/19 01:08:48 brianp Exp $ */
+/* $Id: s_span.c,v 1.41 2002/04/20 17:54:55 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1306,7 +1306,7 @@ _mesa_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer,
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLint bufWidth = (GLint) buffer->Width;
- const GLint bufHeight = (GLint) buffer->Width;
+ const GLint bufHeight = (GLint) buffer->Height;
if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) {
/* completely above, below, or right */
@@ -1360,7 +1360,7 @@ _mesa_read_index_span( GLcontext *ctx, GLframebuffer *buffer,
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLint bufWidth = (GLint) buffer->Width;
- const GLint bufHeight = (GLint) buffer->Width;
+ const GLint bufHeight = (GLint) buffer->Height;
if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) {
/* completely above, below, or right */