From db10c23942978ecf61a3c9eb7506a7a05a473c8f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 20 Jan 2008 22:12:27 +0000 Subject: [PATCH] Marshal alcMakeContextCurrent return value as I1. Just to see if it helps Mono. --- Source/OpenTK/OpenAL/AlcFunctions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/OpenTK/OpenAL/AlcFunctions.cs b/Source/OpenTK/OpenAL/AlcFunctions.cs index 358ed75a..ec17db33 100644 --- a/Source/OpenTK/OpenAL/AlcFunctions.cs +++ b/Source/OpenTK/OpenAL/AlcFunctions.cs @@ -114,6 +114,7 @@ namespace OpenTK.OpenAL /// A pointer to the new context. /// Returns True on success, or False on failure. [DllImport(Alc.Lib,EntryPoint = "alcMakeContextCurrent",ExactSpelling = true,CallingConvention = Alc.Style),SuppressUnmanagedCodeSecurity( )] + [return: MarshalAs(UnmanagedType.I1)] public static extern bool MakeContextCurrent( [In] IntPtr context ); // ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent( ALCcontext *context );