Constructor now throws ArgumentNullException instead of ArgumentException.

This commit is contained in:
the_fiddler 2007-10-05 06:54:36 +00:00
parent 5467bc9567
commit 65e2c7830c

View file

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