mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 15:06:58 +00:00
[Win] Clear extension list on reload
This commit is contained in:
parent
88ae446781
commit
770b697583
|
@ -47,6 +47,8 @@ namespace OpenTK.Platform.Windows
|
|||
/// <param name="ext">The extension to check.</param>
|
||||
/// <returns>True if the extension is supported by the given context, false otherwise</returns>
|
||||
public static bool SupportsExtension(IntPtr dc, string name)
|
||||
{
|
||||
lock (sync)
|
||||
{
|
||||
if (extensions.Count == 0)
|
||||
{
|
||||
|
@ -70,6 +72,7 @@ namespace OpenTK.Platform.Windows
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (extensions.Count > 0)
|
||||
{
|
||||
|
@ -131,6 +134,8 @@ namespace OpenTK.Platform.Windows
|
|||
#region Internal Members
|
||||
|
||||
internal override void LoadEntryPoints()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
if (Wgl.GetCurrentContext() != IntPtr.Zero)
|
||||
{
|
||||
|
@ -138,6 +143,8 @@ namespace OpenTK.Platform.Windows
|
|||
{
|
||||
EntryPointsInstance[i] = GetAddress(EntryPointNamesInstance[i]);
|
||||
}
|
||||
extensions.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue