mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Use exact texture coords for 2d pics in glsl.
Moving the texture coordinates in 1/4 pixel made a mess of the 2d pics (very noticable on the round crosshair).
This commit is contained in:
parent
a372efee5c
commit
f71affdfba
1 changed files with 4 additions and 4 deletions
|
@ -196,10 +196,10 @@ make_quad (qpic_t *pic, float x, float y, int w, int h,
|
|||
|
||||
srcx += sp->rect->x;
|
||||
srcy += sp->rect->y;
|
||||
sl = (srcx + 0.25) * sp->size;
|
||||
sh = sl + (srcw - 0.5) * sp->size;
|
||||
tl = (srcy + 0.25) * sp->size;
|
||||
th = tl + (srch - 0.5) * sp->size;
|
||||
sl = (srcx) * sp->size;
|
||||
sh = sl + (srcw) * sp->size;
|
||||
tl = (srcy) * sp->size;
|
||||
th = tl + (srch) * sp->size;
|
||||
|
||||
verts[0].xyst[0] = x;
|
||||
verts[0].xyst[1] = y;
|
||||
|
|
Loading…
Reference in a new issue