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