From 283a7857037a207cf0e4b9de9ca9f562722fb4bb Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 27 Apr 2014 19:45:08 +0200 Subject: [PATCH] [OpenTK] Treat null as MouseCursor.Empty --- Source/OpenTK/NativeWindow.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/NativeWindow.cs b/Source/OpenTK/NativeWindow.cs index 81af9e58..795b67ef 100644 --- a/Source/OpenTK/NativeWindow.cs +++ b/Source/OpenTK/NativeWindow.cs @@ -275,8 +275,9 @@ namespace OpenTK { EnsureUndisposed(); if (value == null) - throw new ArgumentNullException(); - + { + value = MouseCursor.Empty; + } implementation.Cursor = value; } }