[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:
Bill Currie 2022-11-20 01:26:14 +09:00
parent 4ff3ca104d
commit 4cbacc1149

View file

@ -667,10 +667,10 @@ draw_pic (float x, float y, int w, int h, subpic_t *subpic,
srcy += subpic->rect->y; srcy += subpic->rect->y;
float size = subpic->size; float size = subpic->size;
float sl = (srcx + 0.03125) * size; float sl = srcx * size;
float sr = (srcx + srcw - 0.03125) * size; float sr = (srcx + srcw) * size;
float st = (srcy + 0.03125) * size; float st = srcy * size;
float sb = (srcy + srch - 0.03125) * size; float sb = (srcy + srch) * size;
verts[0].xy[0] = x; verts[0].xy[0] = x;
verts[0].xy[1] = y; verts[0].xy[1] = y;