diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-01-06 19:27:50 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 29a825b43b8455159ea31ca570a1fe6e6195997f (patch) | |
| tree | bdf4afe88d7e4b543215a4325e0a61ac4c65088e /Ryujinx.Graphics.OpenGL | |
| parent | 912e43e9795309de675faefd628b209a27af8add (diff) | |
Address PR feedback
Removes a useless null check
Aligns some values to improve readability
Diffstat (limited to 'Ryujinx.Graphics.OpenGL')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/TextureCopy.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/TextureView.cs | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.OpenGL/TextureCopy.cs b/Ryujinx.Graphics.OpenGL/TextureCopy.cs index 244ace8a..55666426 100644 --- a/Ryujinx.Graphics.OpenGL/TextureCopy.cs +++ b/Ryujinx.Graphics.OpenGL/TextureCopy.cs @@ -96,7 +96,7 @@ namespace Ryujinx.Graphics.OpenGL private static bool IsDepthOnly(Format format) { - return format == Format.D16Unorm || + return format == Format.D16Unorm || format == Format.D24X8Unorm || format == Format.D32Float; } diff --git a/Ryujinx.Graphics.OpenGL/TextureView.cs b/Ryujinx.Graphics.OpenGL/TextureView.cs index da0872f6..91f1865d 100644 --- a/Ryujinx.Graphics.OpenGL/TextureView.cs +++ b/Ryujinx.Graphics.OpenGL/TextureView.cs @@ -19,9 +19,6 @@ namespace Ryujinx.Graphics.OpenGL private int _firstLayer; private int _firstLevel; - private bool _acquired; - private bool _pendingDelete; - public int Width => _info.Width; public int Height => _info.Height; public int DepthOrLayers => _info.GetDepthOrLayers(); |
