From: Roland Scheidegger Date: Sat, 21 Jun 2008 00:50:11 +0000 (+0200) Subject: r200: fix typo in r200TryDrawPixels parameter validation (bug 16406) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3f1aac95e5cef26824da08c89fcf2b08ac5ef86;p=mesa.git r200: fix typo in r200TryDrawPixels parameter validation (bug 16406) --- 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__);