summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
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/mesa/drivers/dri/r200
parent21177c8764638e1d4b3b29fed64adec62a14e936 (diff)
downloadexternal_mesa3d-b3f1aac95e5cef26824da08c89fcf2b08ac5ef86.zip
external_mesa3d-b3f1aac95e5cef26824da08c89fcf2b08ac5ef86.tar.gz
external_mesa3d-b3f1aac95e5cef26824da08c89fcf2b08ac5ef86.tar.bz2
r200: fix typo in r200TryDrawPixels parameter validation (bug 16406)
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-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 db8ceea..46d2307 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__);