Constructor now throws ArgumentNullException instead of ArgumentException.
This commit is contained in:
parent
5467bc9567
commit
65e2c7830c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue