mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 05:31:22 +00:00
Add SuppressUnmanagedCodeSecurity and SetLastError attributes.
This commit is contained in:
parent
baf3247afe
commit
73cb7a5dd2
|
@ -470,11 +470,8 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#region SwapBuffers
|
#region SwapBuffers
|
||||||
|
|
||||||
/// <summary>
|
[SuppressUnmanagedCodeSecurity]
|
||||||
///
|
[DllImport("gdi32.dll", SetLastError=true)]
|
||||||
/// </summary>
|
|
||||||
/// <param name="dc"></param>
|
|
||||||
[DllImport("gdi32.dll")]
|
|
||||||
[return: MarshalAs(UnmanagedType.Bool)]
|
[return: MarshalAs(UnmanagedType.Bool)]
|
||||||
internal static extern bool SwapBuffers(IntPtr dc);
|
internal static extern bool SwapBuffers(IntPtr dc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue