[Mesa-dev] [PATCH] radeon: Fix variable initialization typo.

Michel Dänzer michel at daenzer.net
Thu Nov 3 00:58:58 PDT 2011


On Don, 2011-11-03 at 00:52 -0700, Vinson Lee wrote: 
> Fixes Coverity uninitialized scalar variable defect.
> ---
>  src/mesa/drivers/dri/radeon/radeon_common.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c
> index 2ef3faf..2b87f96 100644
> --- a/src/mesa/drivers/dri/radeon/radeon_common.c
> +++ b/src/mesa/drivers/dri/radeon/radeon_common.c
> @@ -93,7 +93,7 @@ void radeonRecalcScissorRects(radeonContextPtr radeon)
>  	bounds.x1 = 0;
>  	bounds.y1 = 0;
>  	bounds.x2 = ctx->DrawBuffer->Width;
> -	bounds.x2 = ctx->DrawBuffer->Height;
> +	bounds.y2 = ctx->DrawBuffer->Height;
>  
>  	if (!radeon->state.scissor.numAllocedClipRects) {
>  		radeon->state.scissor.numAllocedClipRects = 1;

Reviewed-by: Michel Dänzer <michel at daenzer.net>


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the mesa-dev mailing list