mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 20:55:38 +00:00
Constructor now throws ArgumentNullException instead of ArgumentException.
This commit is contained in:
parent
5f9a8921b2
commit
961cf9d54c
|
@ -40,7 +40,7 @@ namespace OpenTK.Platform.X11
|
||||||
public X11GLContext(DisplayMode mode, IWindowInfo info)
|
public X11GLContext(DisplayMode mode, IWindowInfo info)
|
||||||
{
|
{
|
||||||
if (info == null)
|
if (info == null)
|
||||||
throw new ArgumentException("IWindowInfo cannot be null.");
|
throw new ArgumentNullException("IWindowInfo cannot be null.");
|
||||||
|
|
||||||
this.windowInfo = info as WindowInfo;
|
this.windowInfo = info as WindowInfo;
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
|
|
Loading…
Reference in a new issue