mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
[vulkan] Remove the pic texel offsets
It turns out that nearest filtering doesn't need any offsets to avoid texel leaks so long as the screen isn't also offset. With this, the 2d rendering looks good at any scale (minus the inherent blockiness).
This commit is contained in:
parent
4ff3ca104d
commit
4cbacc1149
1 changed files with 4 additions and 4 deletions
|
@ -667,10 +667,10 @@ draw_pic (float x, float y, int w, int h, subpic_t *subpic,
|
|||
srcy += subpic->rect->y;
|
||||
|
||||
float size = subpic->size;
|
||||
float sl = (srcx + 0.03125) * size;
|
||||
float sr = (srcx + srcw - 0.03125) * size;
|
||||
float st = (srcy + 0.03125) * size;
|
||||
float sb = (srcy + srch - 0.03125) * size;
|
||||
float sl = srcx * size;
|
||||
float sr = (srcx + srcw) * size;
|
||||
float st = srcy * size;
|
||||
float sb = (srcy + srch) * size;
|
||||
|
||||
verts[0].xy[0] = x;
|
||||
verts[0].xy[1] = y;
|
||||
|
|
Loading…
Reference in a new issue