mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 22:35:26 +00:00
Remove bogus GraphicsMode.Index check. Fixes #22
GraphicsMode.Index is set by the platform-specific context constructor, which is invoked after the X11GLControl constructor. It does not make sense to check GraphicsMode.Index in the X11GLControl constructor, as it is never set at that point.
This commit is contained in:
parent
838adc0afc
commit
2d7734c915
|
@ -76,8 +76,6 @@ namespace OpenTK
|
|||
throw new ArgumentNullException("mode");
|
||||
if (control == null)
|
||||
throw new ArgumentNullException("control");
|
||||
if (!mode.Index.HasValue)
|
||||
throw new GraphicsModeException("Invalid or unsupported GraphicsMode.");
|
||||
|
||||
this.mode = mode;
|
||||
|
||||
|
|
Loading…
Reference in a new issue