projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145d498
)
mesa: adjust texcoords for swrast sprite points.
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 17:34:01 +0000
(11:34 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 17:34:01 +0000
(11:34 -0600)
Fixes glean pointSprite test w/ software rendering
src/mesa/swrast/s_points.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_points.c
b/src/mesa/swrast/s_points.c
index 846c485f15a390dd4e43eae2cbd04be3828b215b..61ff4d0b84cde4395ddf641125f8bdd124f21ef8 100644
(file)
--- a/
src/mesa/swrast/s_points.c
+++ b/
src/mesa/swrast/s_points.c
@@
-129,13
+129,13
@@
sprite_point(GLcontext *ctx, const SWvertex *vert)
s = 0.0;
dsdx = 1.0 / size;
if (ctx->Point.SpriteOrigin == GL_LOWER_LEFT) {
- t0 = 0.0;
dtdy = 1.0 / size;
+ t0 = 0.5 * dtdy;
}
else {
/* GL_UPPER_LEFT */
- t0 = 1.0;
dtdy = -1.0 / size;
+ t0 = 1.0 + 0.5 * dtdy;
}
ATTRIB_LOOP_BEGIN