From 00ada6cf56c5e1f5c723ee31395554bf964839f7 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 30 Jul 2018 22:09:40 +0200 Subject: [PATCH] fix: softpoly TEXTURES sprites with scale of 2 are tiled --- src/polyrenderer/scene/poly_sprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/polyrenderer/scene/poly_sprite.cpp b/src/polyrenderer/scene/poly_sprite.cpp index 7c0676a2e..011fa67c6 100644 --- a/src/polyrenderer/scene/poly_sprite.cpp +++ b/src/polyrenderer/scene/poly_sprite.cpp @@ -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; }