diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-06-02 20:30:48 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 01:30:48 +0200 |
| commit | b84ba434066ad47389134efac80d2279a10e75ac (patch) | |
| tree | bfc5474b08065ddb04d9fa66b5907bfd2fe73f80 /Ryujinx.Graphics.Gpu/State | |
| parent | 534a45d6e822b4d2694420d80bc6537204a6a1e2 (diff) | |
Fix texture blit off-by-one errors (#2335)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs b/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs index 50fb9010..d6256f68 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs @@ -9,6 +9,11 @@ namespace Ryujinx.Graphics.Gpu.State public uint Packed; #pragma warning restore CS0649 + public bool UnpackOriginCorner() + { + return (Packed & 1u) != 0; + } + public bool UnpackLinearFilter() { return (Packed & (1u << 4)) != 0; |
