Merge pull request #506 from pragmatrix/angle

ANGLE: keep the backbuffer's size updated when the window resizes
This commit is contained in:
varon 2017-03-19 18:40:48 +02:00 committed by GitHub
commit fe9e300e09

View file

@ -171,6 +171,19 @@ namespace OpenTK.Platform.Egl
}
}
public override void Update(IWindowInfo window)
{
MakeCurrent(window);
// ANGLE updates the width and height of the back buffer surfaces in the WaitClient function.
// So without this calling this function, the surface won't match the size of the window after it
// was resized.
// https://bugs.chromium.org/p/angleproject/issues/detail?id=1438
if (!Egl.WaitClient())
{
Debug.Print("[Warning] Egl.WaitClient() failed. Error: {0}", Egl.GetError());
}
}
#endregion
#region IGraphicsContextInternal Members