From 6ad91dcc5b79a20083fd969d487a1ef39a161893 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Mon, 16 Dec 2013 10:39:11 +0100 Subject: [PATCH] Added hack for MonoGame compatibility MonoGame uses reflection to access internal APIs. We need to keep these available until this is fixed downstream. --- Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs b/Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs index fef67067..c6510233 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs @@ -45,6 +45,11 @@ namespace OpenTK.Platform.SDL2 Parent = parent; } + // For compatibility with whoever thought it would be + // a good idea to access internal APIs through reflection + // (e.g. MonoGame) + public IntPtr WindowHandle { get { return Handle; } set { Handle = value; } } + #region IDisposable implementation public void Dispose()