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:
Stefanos A 2013-12-22 15:40:01 +01:00
parent 12cceacf60
commit 7692243cd2

View file

@ -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;