summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-11-03 00:48:53 -0700
committerVinson Lee <[email protected]>2011-11-03 20:34:02 -0700
commit492d223590569448c5666d421444102b50dda90d (patch)
tree69286d81b975d4d91e6e8adb33e23d7043900316
parent8fad0f99989866eeb72889a84f12f6f817334ddb (diff)
radeon: Fix variable initialization typo.
Fixes Coverity uninitialized scalar variable defect.
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common.c2
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 2ef3fafee08..2b87f9631b7 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;