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:
parent
1392d48ec0
commit
6ad91dcc5b
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue