mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 17:25:39 +00:00
[Win] Wgl no longer inherits GraphicsBindingsBase
This is a necessary step for the next commit.
This commit is contained in:
parent
e433aad4b4
commit
c1f284f101
|
@ -15,7 +15,7 @@ using OpenTK.Graphics;
|
|||
|
||||
namespace OpenTK.Platform.Windows
|
||||
{
|
||||
internal partial class Wgl : GraphicsBindingsBase
|
||||
internal partial class Wgl
|
||||
{
|
||||
static IntPtr[] EntryPoints;
|
||||
static string[] EntryPointNames;
|
||||
|
@ -29,8 +29,6 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
public Wgl()
|
||||
{
|
||||
EntryPointsInstance = EntryPoints;
|
||||
EntryPointNamesInstance = EntryPointNames;
|
||||
}
|
||||
|
||||
#region Public Members
|
||||
|
@ -102,12 +100,12 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#region Protected Members
|
||||
|
||||
protected override object SyncRoot
|
||||
protected object SyncRoot
|
||||
{
|
||||
get { return sync; }
|
||||
}
|
||||
|
||||
protected override IntPtr GetAddress(string function_string)
|
||||
IntPtr GetAddress(string function_string)
|
||||
{
|
||||
IntPtr address = Wgl.GetProcAddress(function_string);
|
||||
if (!IsValid(address))
|
||||
|
@ -133,15 +131,15 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#region Internal Members
|
||||
|
||||
internal override void LoadEntryPoints()
|
||||
internal void LoadEntryPoints()
|
||||
{
|
||||
lock (SyncRoot)
|
||||
{
|
||||
if (Wgl.GetCurrentContext() != IntPtr.Zero)
|
||||
{
|
||||
for (int i = 0; i < EntryPointsInstance.Length; i++)
|
||||
for (int i = 0; i < EntryPointNames.Length; i++)
|
||||
{
|
||||
EntryPointsInstance[i] = GetAddress(EntryPointNamesInstance[i]);
|
||||
EntryPoints[i] = GetAddress(EntryPointNames[i]);
|
||||
}
|
||||
extensions.Clear();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue