Constructor now throws ArgumentNullException instead of ArgumentException.

This commit is contained in:
the_fiddler 2007-10-05 06:54:36 +00:00
parent 5f9a8921b2
commit 961cf9d54c

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;