Mac OS X Fix for GameWindow to call glContext.Update when resized
This commit is contained in:
parent
742cf961e4
commit
8bd20009b2
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