From b3f1aac95e5cef26824da08c89fcf2b08ac5ef86 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Sat, 21 Jun 2008 02:50:11 +0200 Subject: [PATCH] r200: fix typo in r200TryDrawPixels parameter validation (bug 16406) --- src/mesa/drivers/dri/r200/r200_pixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_pixel.c b/src/mesa/drivers/dri/r200/r200_pixel.c index db8ceeabe03..46d230767a1 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__); -- 2.30.2