aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-11-19 15:27:34 -0300
committerGitHub <noreply@github.com>2023-11-19 15:27:34 -0300
commit70d65d3d8e77e66226ebab7f23d9b6e8c271319f (patch)
treea6fe4d0638cd3ddc4d2d8b1cf2a8c44086968c82 /src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
parent0b58f462668694db1a035e8be40d2a6d366635e1 (diff)
Enable copy dependency between RGBA8 and RGBA32 formats (#5943)1.1.1092
* Enable copy dependency between RGBA8 and RGBA32 formats * Take packed flag into account for texture formats * Account for widths not being a multiple of each other * Don't try to alias depth textures as color, fix log condition * PR feedback
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
index 0fdb6cd6..a4035577 100644
--- a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
+++ b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
@@ -430,7 +430,7 @@ namespace Ryujinx.Graphics.Gpu.Image
if (!FormatTable.TryGetTextureFormat(format, srgb, out FormatInfo formatInfo))
{
- if (gpuVa != 0 && (int)format > 0)
+ if (gpuVa != 0 && format != 0)
{
Logger.Error?.Print(LogClass.Gpu, $"Invalid texture format 0x{format:X} (sRGB: {srgb}).");
}