Fixed compilation errors.

Moved bindings to the GL class.
This commit is contained in:
the_fiddler 2009-08-15 17:37:18 +00:00
parent 4021e67dc1
commit aa500ce806
12 changed files with 99 additions and 167 deletions

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES10
#pragma warning disable 1572 #pragma warning disable 1572
#pragma warning disable 1573 #pragma warning disable 1573
static partial class GL partial class GL
{ {

View file

@ -266,13 +266,11 @@ namespace OpenTK.Graphics.ES10
Palette8Rgb5A1Oes = ((int)0X8b99), Palette8Rgb5A1Oes = ((int)0X8b99),
ImplementationColorReadTypeOes = ((int)0X8b9a), ImplementationColorReadTypeOes = ((int)0X8b9a),
ImplementationColorReadFormatOes = ((int)0X8b9b), ImplementationColorReadFormatOes = ((int)0X8b9b),
32LeanAndMean = ((int)1),
OesCompressedPalettedTexture = ((int)1), OesCompressedPalettedTexture = ((int)1),
OesReadFormat = ((int)1), OesReadFormat = ((int)1),
OesVersion10 = ((int)1), OesVersion10 = ((int)1),
One = ((int)1), One = ((int)1),
True = ((int)1), True = ((int)1),
Pi = ((int)Extern),
} }
public enum AlphaFunction public enum AlphaFunction
@ -666,10 +664,4 @@ namespace OpenTK.Graphics.ES10
ClampToEdge = ((int)0X812f), ClampToEdge = ((int)0X812f),
} }
public enum Unknown
{
32LeanAndMean = ((int)1),
Pi = ((int)Extern),
}
} }

View file

@ -80,7 +80,7 @@ namespace OpenTK.Graphics.ES10
{ {
if (Context.ErrorChecking) if (Context.ErrorChecking)
{ {
while ((ErrorCode)ES.GetError() != ErrorCode.NoError) while ((ErrorCode)GL.GetError() != ErrorCode.NoError)
{ } { }
} }
} }
@ -96,7 +96,7 @@ namespace OpenTK.Graphics.ES10
ErrorCode error; ErrorCode error;
do do
{ {
error = (ErrorCode)ES.GetError(); error = (ErrorCode)GL.GetError();
error_list.Add(error); error_list.Add(error);
} while (error != ErrorCode.NoError); } while (error != ErrorCode.NoError);

View file

@ -241,10 +241,10 @@ namespace OpenTK.Graphics.ES11
internal extern static unsafe void DrawTexxvOES(int* coords); internal extern static unsafe void DrawTexxvOES(int* coords);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)]
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)]
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)]
internal extern static void Enable(OpenTK.Graphics.ES11.All cap); internal extern static void Enable(OpenTK.Graphics.ES11.All cap);

View file

@ -239,10 +239,10 @@ namespace OpenTK.Graphics.ES11
internal unsafe delegate void DrawTexxvOES(int* coords); internal unsafe delegate void DrawTexxvOES(int* coords);
internal unsafe static DrawTexxvOES glDrawTexxvOES; internal unsafe static DrawTexxvOES glDrawTexxvOES;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, IntPtr image);
internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES; internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, IntPtr image);
internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES; internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Enable(OpenTK.Graphics.ES11.All cap); internal delegate void Enable(OpenTK.Graphics.ES11.All cap);

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES11
#pragma warning disable 1572 #pragma warning disable 1572
#pragma warning disable 1573 #pragma warning disable 1573
static partial class GL partial class GL
{ {
@ -9958,13 +9958,13 @@ namespace OpenTK.Graphics.ES11
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")] [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")]
public static public static
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES11.All target, GLeglImageOES image) void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES11.All target, IntPtr image)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image); Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (IntPtr)image);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -9972,13 +9972,13 @@ namespace OpenTK.Graphics.ES11
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetTexture2DOES")] [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetTexture2DOES")]
public static public static
void EGLImageTargetTexture2D(OpenTK.Graphics.ES11.All target, GLeglImageOES image) void EGLImageTargetTexture2D(OpenTK.Graphics.ES11.All target, IntPtr image)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image); Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES11.All)target, (IntPtr)image);
#if DEBUG #if DEBUG
} }
#endif #endif

View file

@ -411,8 +411,8 @@ namespace OpenTK.Graphics.ES11
BufferSize = ((int)0X8764), BufferSize = ((int)0X8764),
BufferUsage = ((int)0X8765), BufferUsage = ((int)0X8765),
AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee),
3DcXAmd = ((int)0X87f9), GL_3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa), GL_3DcXyAmd = ((int)0X87fa),
BlendEquationAlphaOes = ((int)0X883d), BlendEquationAlphaOes = ((int)0X883d),
MatrixPaletteOes = ((int)0X8840), MatrixPaletteOes = ((int)0X8840),
MaxPaletteMatricesOes = ((int)0X8842), MaxPaletteMatricesOes = ((int)0X8842),
@ -572,8 +572,8 @@ namespace OpenTK.Graphics.ES11
public enum Amdcompressed3Dctexture public enum Amdcompressed3Dctexture
{ {
3DcXAmd = ((int)0X87f9), GL_3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa), GL_3DcXyAmd = ((int)0X87fa),
AmdCompressed3DcTexture = ((int)1), AmdCompressed3DcTexture = ((int)1),
} }

View file

@ -139,7 +139,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers); internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFencesNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFencesNV", ExactSpelling = true)]
internal extern static unsafe void DeleteFencesNV(UInt32**); internal extern static unsafe void DeleteFencesNV(Int32 n, UInt32* fences);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)]
internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers); internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
@ -187,10 +187,10 @@ namespace OpenTK.Graphics.ES20
internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)]
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)]
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)]
internal extern static void Enable(OpenTK.Graphics.ES20.All cap); internal extern static void Enable(OpenTK.Graphics.ES20.All cap);
@ -208,7 +208,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void Finish(); internal extern static void Finish();
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinishFenceNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinishFenceNV", ExactSpelling = true)]
internal extern static void FinishFenceNV(); internal extern static void FinishFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)]
internal extern static void Flush(); internal extern static void Flush();
@ -232,7 +232,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target); internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)]
internal extern static unsafe void GenFencesNV(UInt32**); internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)]
internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers); internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers);
@ -277,7 +277,7 @@ namespace OpenTK.Graphics.ES20
internal extern static OpenTK.Graphics.ES20.All GetError(); internal extern static OpenTK.Graphics.ES20.All GetError();
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)]
internal extern static unsafe void GetFenceivNV(Int32**); internal extern static unsafe void GetFenceivNV(UInt32 fence, Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)]
internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
@ -367,7 +367,7 @@ namespace OpenTK.Graphics.ES20
internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap); internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)]
internal extern static bool IsFenceNV(); internal extern static bool IsFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFramebuffer", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFramebuffer", ExactSpelling = true)]
internal extern static bool IsFramebuffer(UInt32 framebuffer); internal extern static bool IsFramebuffer(UInt32 framebuffer);
@ -421,7 +421,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList); internal extern static unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSetFenceNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSetFenceNV", ExactSpelling = true)]
internal extern static void SetFenceNV(); internal extern static void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)]
internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
@ -448,7 +448,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)]
internal extern static bool TestFenceNV(); internal extern static bool TestFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)]
internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);

View file

@ -137,7 +137,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers); internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers);
internal unsafe static DeleteBuffers glDeleteBuffers; internal unsafe static DeleteBuffers glDeleteBuffers;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeleteFencesNV(UInt32**); internal unsafe delegate void DeleteFencesNV(Int32 n, UInt32* fences);
internal unsafe static DeleteFencesNV glDeleteFencesNV; internal unsafe static DeleteFencesNV glDeleteFencesNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers); internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
@ -185,10 +185,10 @@ namespace OpenTK.Graphics.ES20
internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
internal static DrawElements glDrawElements; internal static DrawElements glDrawElements;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES; internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES; internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Enable(OpenTK.Graphics.ES20.All cap); internal delegate void Enable(OpenTK.Graphics.ES20.All cap);
@ -206,7 +206,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void Finish(); internal delegate void Finish();
internal static Finish glFinish; internal static Finish glFinish;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FinishFenceNV(); internal delegate void FinishFenceNV(UInt32 fence);
internal static FinishFenceNV glFinishFenceNV; internal static FinishFenceNV glFinishFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Flush(); internal delegate void Flush();
@ -230,7 +230,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target); internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target);
internal static GenerateMipmap glGenerateMipmap; internal static GenerateMipmap glGenerateMipmap;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFencesNV(UInt32**); internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences);
internal unsafe static GenFencesNV glGenFencesNV; internal unsafe static GenFencesNV glGenFencesNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers); internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers);
@ -275,7 +275,7 @@ namespace OpenTK.Graphics.ES20
internal delegate OpenTK.Graphics.ES20.All GetError(); internal delegate OpenTK.Graphics.ES20.All GetError();
internal static GetError glGetError; internal static GetError glGetError;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFenceivNV(Int32**); internal unsafe delegate void GetFenceivNV(UInt32 fence, Int32* @params);
internal unsafe static GetFenceivNV glGetFenceivNV; internal unsafe static GetFenceivNV glGetFenceivNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
@ -365,7 +365,7 @@ namespace OpenTK.Graphics.ES20
internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap); internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap);
internal static IsEnabled glIsEnabled; internal static IsEnabled glIsEnabled;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsFenceNV(); internal delegate bool IsFenceNV(UInt32 fence);
internal static IsFenceNV glIsFenceNV; internal static IsFenceNV glIsFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsFramebuffer(UInt32 framebuffer); internal delegate bool IsFramebuffer(UInt32 framebuffer);
@ -419,7 +419,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList); internal unsafe delegate void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList);
internal unsafe static SelectPerfMonitorCountersAMD glSelectPerfMonitorCountersAMD; internal unsafe static SelectPerfMonitorCountersAMD glSelectPerfMonitorCountersAMD;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void SetFenceNV(); internal delegate void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
internal static SetFenceNV glSetFenceNV; internal static SetFenceNV glSetFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
@ -446,7 +446,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal static StencilOpSeparate glStencilOpSeparate; internal static StencilOpSeparate glStencilOpSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool TestFenceNV(); internal delegate bool TestFenceNV(UInt32 fence);
internal static TestFenceNV glTestFenceNV; internal static TestFenceNV glTestFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES20
#pragma warning disable 1572 #pragma warning disable 1572
#pragma warning disable 1573 #pragma warning disable 1573
static partial class GL partial class GL
{ {
public static partial class Amd public static partial class Amd
@ -10814,30 +10814,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static public static
unsafe void DeleteFences(Int32**) unsafe void DeleteFences(Int32 n, Int32* fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glDeleteFencesNV((UInt32**)); Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static public static
unsafe void DeleteFences(Int32*[]) void DeleteFences(Int32 n, ref UInt32 fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = ) unsafe
{ {
Delegates.glDeleteFencesNV((UInt32**)_ptr); fixed (UInt32* fences_ptr = &fences)
{
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
} }
#if DEBUG #if DEBUG
} }
@ -10847,66 +10849,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static public static
unsafe void DeleteFences(ref Int32*) unsafe void DeleteFences(Int32 n, UInt32* fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = &) Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
}
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static public static
unsafe void DeleteFences(ref UInt32*) void DeleteFences(Int32 n, UInt32[] fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (UInt32** _ptr = &) unsafe
{ {
Delegates.glDeleteFencesNV((UInt32**)_ptr); fixed (UInt32* fences_ptr = fences)
} {
#if DEBUG Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
} }
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(UInt32**)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glDeleteFencesNV((UInt32**));
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(UInt32*[])
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = )
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
} }
#if DEBUG #if DEBUG
} }
@ -10915,13 +10883,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinishFenceNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinishFenceNV")]
public static public static
void FinishFence() void FinishFence(UInt32 fence)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glFinishFenceNV(); Delegates.glFinishFenceNV((UInt32)fence);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -10930,30 +10898,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static public static
unsafe void GenFences(Int32**) unsafe void GenFences(Int32 n, Int32* fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glGenFencesNV((UInt32**)); Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static public static
unsafe void GenFences(Int32*[]) void GenFences(Int32 n, ref UInt32 fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = ) unsafe
{ {
Delegates.glGenFencesNV((UInt32**)_ptr); fixed (UInt32* fences_ptr = &fences)
{
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
}
} }
#if DEBUG #if DEBUG
} }
@ -10963,66 +10933,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static public static
unsafe void GenFences(ref Int32*) unsafe void GenFences(Int32 n, UInt32* fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = &) Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
{
Delegates.glGenFencesNV((UInt32**)_ptr);
}
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static public static
unsafe void GenFences(ref UInt32*) void GenFences(Int32 n, UInt32[] fences)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (UInt32** _ptr = &) unsafe
{ {
Delegates.glGenFencesNV((UInt32**)_ptr); fixed (UInt32* fences_ptr = fences)
} {
#if DEBUG Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
} }
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(UInt32**)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glGenFencesNV((UInt32**));
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(UInt32*[])
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = )
{
Delegates.glGenFencesNV((UInt32**)_ptr);
} }
#if DEBUG #if DEBUG
} }
@ -11032,48 +10968,52 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static public static
unsafe void GetFence(Int32**) unsafe void GetFence(UInt32 fence, Int32* @params)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glGetFenceivNV((Int32**)); Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params);
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static public static
unsafe void GetFence(Int32*[]) void GetFence(UInt32 fence, Int32[] @params)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = ) unsafe
{ {
Delegates.glGetFenceivNV((Int32**)_ptr); fixed (Int32* @params_ptr = @params)
{
Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr);
}
} }
#if DEBUG #if DEBUG
} }
#endif #endif
} }
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static public static
unsafe void GetFence(ref Int32*) void GetFence(UInt32 fence, ref Int32 @params)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
fixed (Int32** _ptr = &) unsafe
{ {
Delegates.glGetFenceivNV((Int32**)_ptr); fixed (Int32* @params_ptr = &@params)
{
Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr);
}
} }
#if DEBUG #if DEBUG
} }
@ -11082,13 +11022,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFenceNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFenceNV")]
public static public static
bool IsFence() bool IsFence(UInt32 fence)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
return Delegates.glIsFenceNV(); return Delegates.glIsFenceNV((UInt32)fence);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -11096,13 +11036,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSetFenceNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSetFenceNV")]
public static public static
void SetFence() void SetFence(UInt32 fence, OpenTK.Graphics.ES20.All condition)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glSetFenceNV(); Delegates.glSetFenceNV((UInt32)fence, (OpenTK.Graphics.ES20.All)condition);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -11110,13 +11050,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTestFenceNV")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTestFenceNV")]
public static public static
bool TestFence() bool TestFence(UInt32 fence)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
return Delegates.glTestFenceNV(); return Delegates.glTestFenceNV((UInt32)fence);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -11913,13 +11853,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")]
public static public static
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES20.All target, GLeglImageOES image) void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES20.All target, IntPtr image)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image); Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES20.All)target, (IntPtr)image);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -11927,13 +11867,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetTexture2DOES")] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetTexture2DOES")]
public static public static
void EGLImageTargetTexture2D(OpenTK.Graphics.ES20.All target, GLeglImageOES image) void EGLImageTargetTexture2D(OpenTK.Graphics.ES20.All target, IntPtr image)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image); Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES20.All)target, (IntPtr)image);
#if DEBUG #if DEBUG
} }
#endif #endif

View file

@ -261,8 +261,8 @@ namespace OpenTK.Graphics.ES20
BufferSize = ((int)0X8764), BufferSize = ((int)0X8764),
BufferUsage = ((int)0X8765), BufferUsage = ((int)0X8765),
AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee),
3DcXAmd = ((int)0X87f9), GL_3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa), GL_3DcXyAmd = ((int)0X87fa),
NumProgramBinaryFormatsOes = ((int)0X87fe), NumProgramBinaryFormatsOes = ((int)0X87fe),
ProgramBinaryFormatsOes = ((int)0X87ff), ProgramBinaryFormatsOes = ((int)0X87ff),
StencilBackFunc = ((int)0X8800), StencilBackFunc = ((int)0X8800),
@ -439,8 +439,8 @@ namespace OpenTK.Graphics.ES20
public enum Amdcompressed3Dctexture public enum Amdcompressed3Dctexture
{ {
3DcXAmd = ((int)0X87f9), GL_3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa), GL_3DcXyAmd = ((int)0X87fa),
AmdCompressed3DcTexture = ((int)1), AmdCompressed3DcTexture = ((int)1),
} }

View file

@ -80,7 +80,7 @@ namespace OpenTK.Graphics.ES20
{ {
if (Context.ErrorChecking) if (Context.ErrorChecking)
{ {
while ((ErrorCode)ES.GetError() != ErrorCode.NoError) while ((ErrorCode)GL.GetError() != ErrorCode.NoError)
{ } { }
} }
} }
@ -96,7 +96,7 @@ namespace OpenTK.Graphics.ES20
ErrorCode error; ErrorCode error;
do do
{ {
error = (ErrorCode)ES.GetError(); error = (ErrorCode)GL.GetError();
error_list.Add(error); error_list.Add(error);
} while (error != ErrorCode.NoError); } while (error != ErrorCode.NoError);