mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:35:39 +00:00
Added workaround for the "Resize event called before GraphicsContext is ready" issue.
This commit is contained in:
parent
40aae28300
commit
56610f5b20
|
@ -191,6 +191,9 @@ namespace OpenTK
|
|||
/// <param name="e">A System.EventArgs that contains the event data.</param>
|
||||
protected override void OnResize(EventArgs e)
|
||||
{
|
||||
if (IsHandleCreated == false)
|
||||
CreateHandle();
|
||||
|
||||
if (context != null)
|
||||
context.Update(Implementation.WindowInfo);
|
||||
|
||||
|
|
Loading…
Reference in a new issue