aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-07-31 08:14:50 +0000
committerDave Airlie <airliedfreedesktop.org>2004-07-31 08:14:50 +0000
commita032297b32fd692459d0d143068ef2b065886c0a (patch)
tree7e4c53e03cf42fa9a3a141f11d6b4a2506d7597b /src
parentd9166e132e150945e04d2fc9214da0796cd36a02 (diff)
xorg-r200-uninitialized-variable-used.patch from Redhat xorg
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r200/r200_pixel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_pixel.c b/src/mesa/drivers/dri/r200/r200_pixel.c
index e2edbfbf5c1..adc6a2aa282 100644
--- a/src/mesa/drivers/dri/r200/r200_pixel.c
+++ b/src/mesa/drivers/dri/r200/r200_pixel.c
@@ -152,9 +152,10 @@ r200TryReadPixels( GLcontext *ctx,
GLvoid *pixels )
{
r200ContextPtr rmesa = R200_CONTEXT(ctx);
- GLint size;
GLint pitch = pack->RowLength ? pack->RowLength : width;
GLint blit_format;
+ GLuint cpp = rmesa->r200Screen->cpp;
+ GLint size = width * height * cpp;
if (R200_DEBUG & DEBUG_PIXEL)
fprintf(stderr, "%s\n", __FUNCTION__);