summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2008-06-21 02:50:11 +0200
committerRoland Scheidegger <sroland@tungstengraphics.com>2008-06-21 02:54:14 +0200
commitb3f1aac95e5cef26824da08c89fcf2b08ac5ef86 (patch)
tree3827a2879552bb17db06b1c76401c01a1f4ea0f6 /src
parent21177c8764638e1d4b3b29fed64adec62a14e936 (diff)
r200: fix typo in r200TryDrawPixels parameter validation (bug 16406)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r200/r200_pixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_pixel.c b/src/mesa/drivers/dri/r200/r200_pixel.c
index db8ceeabe0..46d230767a 100644
--- a/src/mesa/drivers/dri/r200/r200_pixel.c
+++ b/src/mesa/drivers/dri/r200/r200_pixel.c
@@ -382,7 +382,7 @@ r200TryDrawPixels( GLcontext *ctx,
GLint pitch = unpack->RowLength ? unpack->RowLength : width;
GLuint planemask;
GLuint cpp = rmesa->r200Screen->cpp;
- GLint size = width * pitch * cpp;
+ GLint size = height * pitch * cpp;
if (R200_DEBUG & DEBUG_PIXEL)
fprintf(stderr, "%s\n", __FUNCTION__);