From 8f353457295767edaaf9dfccb4d938bc1befeb40 Mon Sep 17 00:00:00 2001 From: Berkan Diler Date: Sun, 13 Feb 2022 14:50:07 +0100 Subject: Use Enum and Delegate.CreateDelegate generic overloads (#3111) * Use Enum generic overloads * Remove EnumExtensions.cs * Use Delegate.CreateDelegate generic overloads --- Ryujinx.Graphics.OpenGL/FormatTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.OpenGL/FormatTable.cs') diff --git a/Ryujinx.Graphics.OpenGL/FormatTable.cs b/Ryujinx.Graphics.OpenGL/FormatTable.cs index 41fd9f37..c054ba57 100644 --- a/Ryujinx.Graphics.OpenGL/FormatTable.cs +++ b/Ryujinx.Graphics.OpenGL/FormatTable.cs @@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.OpenGL static FormatTable() { - int tableSize = Enum.GetNames(typeof(Format)).Length; + int tableSize = Enum.GetNames().Length; Table = new FormatInfo[tableSize]; TableImage = new SizedInternalFormat[tableSize]; -- cgit v1.2.3