From 961cf9d54c052c439fddf4a7ddc6796218b7169e Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 5 Oct 2007 06:54:36 +0000 Subject: [PATCH] Constructor now throws ArgumentNullException instead of ArgumentException. --- Source/OpenTK/Platform/X11/X11GLContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;