aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-08-12 17:45:25 -0300
committerGitHub <noreply@github.com>2024-08-12 17:45:25 -0300
commit4f75e26ec7e61e606f812bd0149eef69bdc8a4ea (patch)
treed168984a627c9303b10da7b5b3157e6597502e7e /src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
parent8d8983049ea23af0600e077b6389e2cd5de74c38 (diff)
Clamp amount of mipmap levels to max allowed for all backends (#7197)
* Clamp amount of mipmap levels to max allowed for all backends * XML docs * Remove using
Diffstat (limited to 'src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs')
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs b/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
index 79c6cb68..0ebafb04 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
@@ -48,7 +48,7 @@ namespace Ryujinx.Graphics.OpenGL.Image
internalFormat = (SizedInternalFormat)format.PixelInternalFormat;
}
- int levels = Info.GetLevelsClamped();
+ int levels = Info.Levels;
switch (Info.Target)
{