diff --git a/src/rendering/swrenderer/viewport/r_spritedrawer.cpp b/src/rendering/swrenderer/viewport/r_spritedrawer.cpp index 99a7eb997c..9a0586076d 100644 --- a/src/rendering/swrenderer/viewport/r_spritedrawer.cpp +++ b/src/rendering/swrenderer/viewport/r_spritedrawer.cpp @@ -139,6 +139,9 @@ namespace swrenderer int texwidth = tex->GetPhysicalWidth(); int texheight = tex->GetPhysicalHeight(); + dc_viewport = thread->Viewport.get(); + dc_textureheight = texheight; + vstepY *= texheight; for (int x = sx0; x < sx1; x++)