Permalink
Browse files

Fixed #5

We need to release the cursor before closing a GameWindow, otherwise
subsequent GameWindows may fail to receive mouse events.
  • Loading branch information...
1 parent 486130c commit 75d4f3d07c69f2747d6e14fe6834ac8675c36199 @thefiddler thefiddler committed Nov 20, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
@@ -312,6 +312,7 @@ void DestroyWindow()
if (window.Handle != IntPtr.Zero)
{
+ CursorVisible = true;
lock (SDL.Sync)
{
SDL.DelEventWatch(EventFilterDelegate, window.Handle);

0 comments on commit 75d4f3d

Please sign in to comment.