diff options
author | Berkan Diler <berkan.diler1@ingka.ikea.com> | 2022-02-13 14:50:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 10:50:07 -0300 |
commit | 8f353457295767edaaf9dfccb4d938bc1befeb40 (patch) | |
tree | d263a7bdb9aca026105b0681d3d5ec4849cf8a2e /Ryujinx.Graphics.OpenGL/FormatTable.cs | |
parent | ce71f9144e1575c432bb009755f01466cd685fbf (diff) |
Use Enum and Delegate.CreateDelegate generic overloads (#3111)1.1.27
* Use Enum generic overloads
* Remove EnumExtensions.cs
* Use Delegate.CreateDelegate generic overloads
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/FormatTable.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/FormatTable.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Format>().Length; Table = new FormatInfo[tableSize]; TableImage = new SizedInternalFormat[tableSize]; |