Fix texture blit off-by-one errors (#2335)

This commit is contained in:
gdkchan 2021-06-02 20:30:48 -03:00 committed by GitHub
parent 534a45d6e8
commit b84ba43406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

View file

@ -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;