Permalink
Browse files

Added hack for MonoGame compatibility

MonoGame uses reflection to access internal APIs. We need to keep these
available until this is fixed downstream.
  • Loading branch information...
1 parent 1392d48 commit 6ad91dcc5b79a20083fd969d487a1ef39a161893 @thefiddler thefiddler committed Dec 16, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 Source/OpenTK/Platform/SDL2/Sdl2WindowInfo.cs
@@ -45,6 +45,11 @@ public Sdl2WindowInfo(IntPtr handle, Sdl2WindowInfo parent)
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()

0 comments on commit 6ad91dc

Please sign in to comment.