From a032297b32fd692459d0d143068ef2b065886c0a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 31 Jul 2004 08:14:50 +0000 Subject: xorg-r200-uninitialized-variable-used.patch from Redhat xorg --- src/mesa/drivers/dri/r200/r200_pixel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/r200') diff --git a/src/mesa/drivers/dri/r200/r200_pixel.c b/src/mesa/drivers/dri/r200/r200_pixel.c index e2edbfbf5c..adc6a2aa28 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__); -- cgit v1.2.3