Mac OS X Fix for GameWindow to call glContext.Update when resized
This commit is contained in:
parent
959a1e8eb7
commit
017c9e86d0
1 changed files with 14 additions and 4 deletions
|
@ -961,13 +961,23 @@ namespace OpenTK
|
|||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
#region OnResize
|
||||
|
||||
#region --- Private Members ---
|
||||
protected override void OnResize(EventArgs e)
|
||||
{
|
||||
base.OnResize(e);
|
||||
glContext.Update(base.WindowInfo);
|
||||
}
|
||||
|
||||
#region OnLoadInternal
|
||||
#endregion
|
||||
|
||||
private void OnLoadInternal(EventArgs e)
|
||||
#endregion
|
||||
|
||||
#region --- Private Members ---
|
||||
|
||||
#region OnLoadInternal
|
||||
|
||||
private void OnLoadInternal(EventArgs e)
|
||||
{
|
||||
OnResize(EventArgs.Empty);
|
||||
OnLoad(e);
|
||||
|
|
Loading…
Reference in a new issue