xorg-r200-uninitialized-variable-used.patch from Redhat xorg

This commit is contained in:
Dave Airlie 2004-07-31 08:14:50 +00:00
parent d9166e132e
commit a032297b32

View file

@ -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__);