Mesa (master): radeon: Fix variable initialization typo.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Nov 4 03:34:42 UTC 2011
Module: Mesa
Branch: master
Commit: 492d223590569448c5666d421444102b50dda90d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=492d223590569448c5666d421444102b50dda90d
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Nov 3 00:48:53 2011 -0700
radeon: Fix variable initialization typo.
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;
More information about the mesa-commit
mailing list