[SDL2] Added missing [SuppressUnamangedCodeSecurity] attribute
authorthefiddler <stapostol@gmail.com>
Sat, 28 Dec 2013 00:04:46 +0000 (01:04 +0100)
committerthefiddler <stapostol@gmail.com>
Sat, 28 Dec 2013 00:04:46 +0000 (01:04 +0100)
Source/OpenTK/Platform/SDL2/Sdl2.cs

index 9bf0755..40ec370 100644 (file)
@@ -334,6 +334,7 @@ namespace OpenTK.Platform.SDL2
             [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetAttribute", ExactSpelling = true)]
             public static extern int GetAttribute(ContextAttribute attr, out int value);
 
+            [SuppressUnmanagedCodeSecurity]
             [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetCurrentContext", ExactSpelling = true)]
             public static extern IntPtr GetCurrentContext();