mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-26 05:36:50 +00:00
ANGLE: keep the backbuffer size updated when the window resizes
This commit is contained in:
parent
cd3138f9e3
commit
30752ed36d
|
@ -171,6 +171,18 @@ namespace OpenTK.Platform.Egl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Update(IWindowInfo 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
|
#endregion
|
||||||
|
|
||||||
#region IGraphicsContextInternal Members
|
#region IGraphicsContextInternal Members
|
||||||
|
|
Loading…
Reference in a new issue