From 2d7734c915dffbf34fc4efddb9977c3a7fdd698e Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Sun, 22 Dec 2013 15:40:01 +0100 Subject: [PATCH] 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. --- Source/GLControl/X11GLControl.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/GLControl/X11GLControl.cs b/Source/GLControl/X11GLControl.cs index 98c0de82..19d036b7 100644 --- a/Source/GLControl/X11GLControl.cs +++ b/Source/GLControl/X11GLControl.cs @@ -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;