[OpenTK] Treat null as MouseCursor.Empty
This commit is contained in:
parent
1d8ef7165f
commit
283a785703
1 changed files with 3 additions and 2 deletions
|
@ -275,8 +275,9 @@ namespace OpenTK
|
||||||
{
|
{
|
||||||
EnsureUndisposed();
|
EnsureUndisposed();
|
||||||
if (value == null)
|
if (value == null)
|
||||||
throw new ArgumentNullException();
|
{
|
||||||
|
value = MouseCursor.Empty;
|
||||||
|
}
|
||||||
implementation.Cursor = value;
|
implementation.Cursor = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue