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 db8ceea..46d2307 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__);