mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 23:40:33 +01:00
mesa: adjust texcoords for swrast sprite points.
Fixes glean pointSprite test w/ software rendering
This commit is contained in:
parent
145d49838f
commit
6e34fc0d37
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue