From da684d233e85617a19dd5754122c5156c1608437 Mon Sep 17 00:00:00 2001 From: parallels Date: Sat, 9 Nov 2013 17:13:24 +0100 Subject: [PATCH] Swallow DllNotFoundException in Sdl2 constructor --- Source/OpenTK/Platform/SDL2/Sdl2.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2.cs b/Source/OpenTK/Platform/SDL2/Sdl2.cs index 0dd1bbb6..0f62e52c 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2.cs @@ -47,7 +47,14 @@ namespace OpenTK.Platform.SDL2 static SDL() { - GetVersion(out Version); + try + { + GetVersion(out Version); + } + catch + { + // nom nom + } } #region Functions