mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 21:11:02 +00:00
parent
625ba5dcda
commit
242b8bbe6c
|
@ -188,6 +188,10 @@ namespace OpenTK.Graphics
|
|||
if (getAddress == null || getCurrent == null)
|
||||
throw new ArgumentNullException();
|
||||
|
||||
// Make sure OpenTK has been initialized.
|
||||
// Fixes https://github.com/opentk/opentk/issues/52
|
||||
Toolkit.Init();
|
||||
|
||||
lock (SyncRoot)
|
||||
{
|
||||
// Replace a zero-handle by the current context, if any
|
||||
|
|
Loading…
Reference in a new issue