mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
fix: softpoly TEXTURES sprites with scale of 2 are tiled
This commit is contained in:
parent
5b8a016cad
commit
00ada6cf56
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ void RenderPolySprite::Render(PolyRenderThread *thread, AActor *thing, subsector
|
|||
vertices[i].y = (float)p.Y;
|
||||
vertices[i].z = (float)(posZ + spriteHeight * offsets[i].second);
|
||||
vertices[i].w = 1.0f;
|
||||
vertices[i].u = (float)(offsets[i].first * tex->Scale.X);
|
||||
vertices[i].v = (float)((1.0f - offsets[i].second) * tex->Scale.Y);
|
||||
vertices[i].u = (float)offsets[i].first;
|
||||
vertices[i].v = (float)(1.0f - offsets[i].second);
|
||||
if (flipTextureX)
|
||||
vertices[i].u = 1.0f - vertices[i].u;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue