Remove exception handling from main event loop in SDL. Fixed #735 (#737)

* Rethrow exception from main event loop in SDL. Fixed  #735

* Remove try-catch
This commit is contained in:
VperuS 2018-04-06 23:13:23 +03:00 committed by Jarl Gullberg
parent 8ec577b9ca
commit 067cd4a5bc

View file

@ -146,8 +146,7 @@ namespace OpenTK.Platform.SDL2
{
bool processed = false;
try
{
Sdl2NativeWindow window = null;
switch (ev.Type)
@ -215,11 +214,6 @@ namespace OpenTK.Platform.SDL2
Debug.WriteLine("Sdl2 application quit");
break;
}
}
catch (Exception ex)
{
Debug.Print(ex.ToString());
}
return processed ? 0 : 1;
}