diff options
author | Eric Anholt <eric@anholt.net> | 2008-12-18 18:23:51 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-12-18 18:32:07 -0800 |
commit | aa09e0a1d532d0de2e094957d0509a7f60ebeafa (patch) | |
tree | 4785a9d930d19af316f2fe730763b232aa352b78 /src/mesa/drivers/dri/radeon/radeon_lighting.c | |
parent | d9b92b112fb64005c71edf1158f7dffabc4659bb (diff) |
mesa: Correct _mesa_clip_to_region() off-by-one.
Note how if:
x + width == xmax + 0: width -= 0
x + width == xmax + 1: width -= 0
x + width == xmax + 2: width -= 1
So, the function was clipping to [xmin, xmax+1), not [xmin, xmax) like it was
supposed to. Same for ymax.
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_lighting.c')
0 files changed, 0 insertions, 0 deletions