mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix subregion batching in screen space.
This commit is contained in:
@@ -411,7 +411,14 @@ namespace SS14.Client.Graphics.Clyde
|
||||
{
|
||||
var (w, h) = loadedTexture.Size;
|
||||
var csr = command.SubRegion.Value;
|
||||
sr = new UIBox2(csr.Left / w, csr.Top / h, csr.Right / w, csr.Bottom / h);
|
||||
if (_currentSpace == CurrentSpace.WorldSpace)
|
||||
{
|
||||
sr = new UIBox2(csr.Left / w, csr.Top / h, csr.Right / w, csr.Bottom / h);
|
||||
}
|
||||
else
|
||||
{
|
||||
sr = new UIBox2(csr.Left / w, csr.Bottom / h, csr.Right / w, csr.Top / h);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user