Added hack for MonoGame compatibility

MonoGame uses reflection to access internal APIs. We need to keep these
available until this is fixed downstream.
This commit is contained in:
Stefanos A. 2013-12-16 10:39:11 +01:00
parent 1392d48ec0
commit 6ad91dcc5b

View file

@ -45,6 +45,11 @@ namespace OpenTK.Platform.SDL2
Parent = 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 #region IDisposable implementation
public void Dispose() public void Dispose()