mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-21 03:47:54 +00:00
Mac OS X Fix for GameWindow to call glContext.Update when resized
This commit is contained in:
parent
959a1e8eb7
commit
017c9e86d0
|
@ -959,6 +959,16 @@ namespace OpenTK
|
||||||
/// <param name="e">Not used.</param>
|
/// <param name="e">Not used.</param>
|
||||||
protected virtual void OnWindowInfoChanged(EventArgs e) { }
|
protected virtual void OnWindowInfoChanged(EventArgs e) { }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region OnResize
|
||||||
|
|
||||||
|
protected override void OnResize(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnResize(e);
|
||||||
|
glContext.Update(base.WindowInfo);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue