mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 09:05:34 +00:00
[SDL2] Added missing [SuppressUnamangedCodeSecurity] attribute
This commit is contained in:
parent
b79d951e62
commit
9171977079
|
@ -334,6 +334,7 @@ namespace OpenTK.Platform.SDL2
|
||||||
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetAttribute", ExactSpelling = true)]
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetAttribute", ExactSpelling = true)]
|
||||||
public static extern int GetAttribute(ContextAttribute attr, out int value);
|
public static extern int GetAttribute(ContextAttribute attr, out int value);
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetCurrentContext", ExactSpelling = true)]
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GL_GetCurrentContext", ExactSpelling = true)]
|
||||||
public static extern IntPtr GetCurrentContext();
|
public static extern IntPtr GetCurrentContext();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue