diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-28 20:45:33 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | af8498d6790ba83f1cf87eccf5f272f2ccbeb169 (patch) | |
| tree | f4bbd0c418a056211f5077646100bedeb5e8fc13 /Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs | |
| parent | d1ab9fb42c2fd9f018d4410ca619cd66294eafc9 (diff) | |
Add basic error logging to the GPU
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs b/Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs deleted file mode 100644 index d3100b98..00000000 --- a/Ryujinx.Graphics.OpenGL/Converters/IndexTypeConverter.cs +++ /dev/null @@ -1,21 +0,0 @@ -using OpenTK.Graphics.OpenGL; -using Ryujinx.Graphics.GAL; -using System; - -namespace Ryujinx.Graphics.OpenGL -{ - static class IndexTypeConverter - { - public static DrawElementsType Convert(this IndexType type) - { - switch (type) - { - case IndexType.UByte: return DrawElementsType.UnsignedByte; - case IndexType.UShort: return DrawElementsType.UnsignedShort; - case IndexType.UInt: return DrawElementsType.UnsignedInt; - } - - throw new ArgumentException($"Invalid index type \"{type}\"."); - } - } -} |
