diff --git a/Source/OpenTK/Platform/X11/X11GLContext.cs b/Source/OpenTK/Platform/X11/X11GLContext.cs index 060e0a25..a3d475d4 100644 --- a/Source/OpenTK/Platform/X11/X11GLContext.cs +++ b/Source/OpenTK/Platform/X11/X11GLContext.cs @@ -40,7 +40,7 @@ namespace OpenTK.Platform.X11 public X11GLContext(DisplayMode mode, IWindowInfo info) { if (info == null) - throw new ArgumentException("IWindowInfo cannot be null."); + throw new ArgumentNullException("IWindowInfo cannot be null."); this.windowInfo = info as WindowInfo; this.mode = mode;