* Rethrow exception from main event loop in SDL. Fixed #735 * Remove try-catch
This commit is contained in:
parent
8ec577b9ca
commit
067cd4a5bc
1 changed files with 59 additions and 65 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue