mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
tweak point rast to fix conform failure
This commit is contained in:
parent
3ee6a77e97
commit
4f9d29cd4e
1 changed files with 6 additions and 4 deletions
|
|
@ -172,9 +172,10 @@ sprite_point(GLcontext *ctx, const SWvertex *vert)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* even size */
|
/* even size */
|
||||||
xmin = (GLint) x - iRadius;
|
/* 0.501 factor allows conformance to pass */
|
||||||
|
xmin = (GLint) (x + 0.501) - iRadius;
|
||||||
xmax = xmin + iSize - 1;
|
xmax = xmin + iSize - 1;
|
||||||
ymin = (GLint) y - iRadius;
|
ymin = (GLint) (y + 0.501) - iRadius;
|
||||||
ymax = ymin + iSize - 1;
|
ymax = ymin + iSize - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -418,9 +419,10 @@ large_point(GLcontext *ctx, const SWvertex *vert)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* even size */
|
/* even size */
|
||||||
xmin = (GLint) x - iRadius;
|
/* 0.501 factor allows conformance to pass */
|
||||||
|
xmin = (GLint) (x + 0.501) - iRadius;
|
||||||
xmax = xmin + iSize - 1;
|
xmax = xmin + iSize - 1;
|
||||||
ymin = (GLint) y - iRadius;
|
ymin = (GLint) (y + 0.501) - iRadius;
|
||||||
ymax = ymin + iSize - 1;
|
ymax = ymin + iSize - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue