Protect against recursion in Closing event
authorStefanos A. <stapostol@gmail.com>
Mon, 16 Dec 2013 09:37:59 +0000 (10:37 +0100)
committerStefanos A. <stapostol@gmail.com>
Mon, 16 Dec 2013 09:37:59 +0000 (10:37 +0100)
commit1392d48ec002d16ae915369dcf714273c438068d
treec34f01f3153bd0cc7747ef866114222541fa1a19
parent39a216f1aced26ef39e625d30050195053f65d22
Protect against recursion in Closing event

Misbehaving clients that shall not be named here may call
GameWindow.Close() inside the GameWindow.Closing event. This causes
recursion in SDL2, crashing the application.

This patch adds a guard to protect against recursion when calling
GameWindow.Close().
Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs