radeon: Fix variable initialization typo.
authorVinson Lee <vlee@vmware.com>
Thu, 3 Nov 2011 07:48:53 +0000 (00:48 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Nov 2011 03:34:02 +0000 (20:34 -0700)
Fixes Coverity uninitialized scalar variable defect.

src/mesa/drivers/dri/radeon/radeon_common.c

index 2ef3fafee0805174354e25d0b5a093b8f63dae67..2b87f9631b760dca4a4f9c2c23e93fc3e61a2e3c 100644 (file)
@@ -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;