projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3c7fd
)
correct scissor and cliprect setting
author
Cooper Yuan
<cooperyuan@gmail.com>
Tue, 23 Jun 2009 03:11:19 +0000
(11:11 +0800)
committer
Cooper Yuan
<cooperyuan@gmail.com>
Tue, 23 Jun 2009 03:11:19 +0000
(11:11 +0800)
src/mesa/drivers/dri/r600/r700_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_state.c
b/src/mesa/drivers/dri/r600/r700_state.c
index 208f18a95c0eaeb5fe47a96459ade7592e3f0d50..b22e1765a3e866cafc8a73b1a4b700ba0fce7df7 100644
(file)
--- a/
src/mesa/drivers/dri/r600/r700_state.c
+++ b/
src/mesa/drivers/dri/r600/r700_state.c
@@
-624,10
+624,10
@@
void r700SetScissor(context_t *context) //---------------
x2 = context->radeon.state.scissor.rect.x2 - 1;
y2 = context->radeon.state.scissor.rect.y2 - 1;
} else {
- x1 =
0
;
- y1 =
0
;
- x2 = rrb->
width - 1
;
- y2 = rrb->
height - 1
;
+ x1 =
rrb->dPriv->x
;
+ y1 =
rrb->dPriv->y
;
+ x2 = rrb->
dPriv->x + rrb->dPriv->w
;
+ y2 = rrb->
dPriv->y + rrb->dPriv->h
;
}
/* window */