mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:45:37 +00:00
Avoid loading Wgl entry points automatically. This is now explicitly done through WinGLContext.
This commit is contained in:
parent
45a623a873
commit
23eaef0c70
|
@ -24,9 +24,9 @@ namespace OpenTK.Platform.Windows
|
|||
delegatesClass = wglClass.GetNestedType("Delegates", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
importsClass = wglClass.GetNestedType("Imports", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
|
||||
// Ensure core entry points are ready prior to accessing any method.
|
||||
// Resolves bug [#993]: "Possible bug in GraphicsContext.CreateDummyContext()"
|
||||
LoadAll();
|
||||
//// Ensure core entry points are ready prior to accessing any method.
|
||||
//// Resolves bug [#993]: "Possible bug in GraphicsContext.CreateDummyContext()"
|
||||
//LoadAll();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -42,6 +42,8 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
private static bool rebuildExtensionList = true;
|
||||
|
||||
static readonly object SyncRoot = new object();
|
||||
|
||||
#endregion
|
||||
|
||||
#region static Delegate LoadDelegate(string name, Type signature)
|
||||
|
@ -107,9 +109,12 @@ namespace OpenTK.Platform.Windows
|
|||
/// Loads all Wgl entry points, core and extensions.
|
||||
/// </summary>
|
||||
public static void LoadAll()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
OpenTK.Platform.Utilities.LoadExtensions(typeof(Wgl));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Reference in a new issue