projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b79d951
)
[SDL2] Added missing [SuppressUnamangedCodeSecurity] attribute
author
thefiddler
<stapostol@gmail.com>
Sat, 28 Dec 2013 00:04:46 +0000
(
01:04
+0100)
committer
thefiddler
<stapostol@gmail.com>
Sat, 28 Dec 2013 00:04:46 +0000
(
01:04
+0100)
Source/OpenTK/Platform/SDL2/Sdl2.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/SDL2/Sdl2.cs
b/Source/OpenTK/Platform/SDL2/Sdl2.cs
index
9bf0755
..
40ec370
100644
(file)
--- a/
Source/OpenTK/Platform/SDL2/Sdl2.cs
+++ b/
Source/OpenTK/Platform/SDL2/Sdl2.cs
@@
-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();