From 29a825b43b8455159ea31ca570a1fe6e6195997f Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 6 Jan 2020 19:27:50 -0300 Subject: Address PR feedback Removes a useless null check Aligns some values to improve readability --- Ryujinx.Graphics.OpenGL/TextureCopy.cs | 2 +- Ryujinx.Graphics.OpenGL/TextureView.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL') 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(); -- cgit v1.2.3