mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-04 23:38:24 +00:00
Mac OS X Fix for GameWindow to call glContext.Update when resized
This commit is contained in:
parent
742cf961e4
commit
8bd20009b2
|
@ -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