mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 23:45:28 +00:00
[ES] ES10 does not require initialization
It consists solely of DllImports that will be initialized on first use, regardless of the existence of an OpenGL context.
This commit is contained in:
parent
3658fac263
commit
e433aad4b4
|
@ -7,31 +7,8 @@ namespace OpenTK.Graphics.ES10
|
|||
/// <summary>
|
||||
/// Provides access to OpenGL ES 1.0 methods.
|
||||
/// </summary>
|
||||
public sealed partial class GL : GraphicsBindingsBase
|
||||
public sealed partial class GL
|
||||
{
|
||||
const string Library = "libGLES.dll";
|
||||
static readonly object sync_root = new object();
|
||||
|
||||
#region --- Protected Members ---
|
||||
|
||||
/// <summary>
|
||||
/// Returns a synchronization token unique for the GL class.
|
||||
/// </summary>
|
||||
protected override object SyncRoot
|
||||
{
|
||||
get { return sync_root; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
internal override void LoadEntryPoints()
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
internal override bool LoadEntryPoint(string function)
|
||||
{
|
||||
return true; // nothing to do
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace OpenTK.Platform
|
|||
|
||||
new OpenTK.Graphics.OpenGL.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.OpenGL4.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES10.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES11.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES20.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES30.GL().LoadEntryPoints();
|
||||
|
|
|
@ -108,7 +108,6 @@ namespace OpenTK.Platform.Dummy
|
|||
{
|
||||
new OpenTK.Graphics.OpenGL.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.OpenGL4.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES10.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES11.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES20.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES30.GL().LoadEntryPoints();
|
||||
|
|
|
@ -38,7 +38,6 @@ namespace OpenTK.Platform
|
|||
{
|
||||
Stopwatch time = Stopwatch.StartNew();
|
||||
|
||||
new OpenTK.Graphics.ES10.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES11.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES20.GL().LoadEntryPoints();
|
||||
new OpenTK.Graphics.ES30.GL().LoadEntryPoints();
|
||||
|
|
Loading…
Reference in a new issue