r200: fix typo in r200TryDrawPixels parameter validation (bug 16406)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 21 Jun 2008 00:50:11 +0000 (02:50 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 21 Jun 2008 00:54:14 +0000 (02:54 +0200)
src/mesa/drivers/dri/r200/r200_pixel.c

index db8ceeabe034292f3ae57e811508329bf1a73736..46d230767a117355d60671d0c7ff3e9d418a3607 100644 (file)
@@ -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__);