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