aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/TextureHandle.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-06-09 06:23:44 -0300
committerGitHub <noreply@github.com>2023-06-09 11:23:44 +0200
commit86de288142188341a98fab6d132152077b391fbd (patch)
treef3f14fbcbe4013ce0cbf919c90df13ef12404062 /src/Ryujinx.Graphics.Shader/TextureHandle.cs
parentf35aa8e9d6cbef59e287fc338932e6d4a78cfc0f (diff)
Removing shift by 0 (#5249)
* Integral numbers should not be shifted by zero or more than their number of bits-1 * more
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/TextureHandle.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/TextureHandle.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Shader/TextureHandle.cs b/src/Ryujinx.Graphics.Shader/TextureHandle.cs
index 39d5c1c3..a59c8cd4 100644
--- a/src/Ryujinx.Graphics.Shader/TextureHandle.cs
+++ b/src/Ryujinx.Graphics.Shader/TextureHandle.cs
@@ -61,7 +61,7 @@ namespace Ryujinx.Graphics.Shader
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int UnpackTextureId(int packedId)
{
- return (packedId >> 0) & 0xfffff;
+ return packedId & 0xfffff;
}
/// <summary>