mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Polymost: Don't cut off a row and/or column of texels when drawing floor-aligned sprites with odd dimensions.
git-svn-id: https://svn.eduke32.com/eduke32@6219 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ad46ac785f
commit
f03d704ddb
1 changed files with 2 additions and 2 deletions
|
@ -4747,8 +4747,8 @@ void polymost_drawsprite(int32_t snum)
|
|||
if ((globalorientation & 8) > 0)
|
||||
off.y = -off.y;
|
||||
|
||||
vec2f_t const p0 = { (float)((tsiz.x >> 1) - off.x) * tspr->xrepeat,
|
||||
(float)((tsiz.y >> 1) - off.y) * tspr->yrepeat },
|
||||
vec2f_t const p0 = { (float)(((tsiz.x + 1) >> 1) - off.x) * tspr->xrepeat,
|
||||
(float)(((tsiz.y + 1) >> 1) - off.y) * tspr->yrepeat },
|
||||
p1 = { (float)((tsiz.x >> 1) + off.x) * tspr->xrepeat,
|
||||
(float)((tsiz.y >> 1) + off.y) * tspr->yrepeat };
|
||||
|
||||
|
|
Loading…
Reference in a new issue