diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs index cf78a293..c0fc66c7 100644 --- a/Source/Bind/Structures/Function.cs +++ b/Source/Bind/Structures/Function.cs @@ -422,7 +422,9 @@ namespace Bind.Structures handle_release_statements.Add(String.Format("{0}_ptr.Free();", p.Name)); - if (p.Flow == FlowDirection.Out) + // Due to the GCHandle-style pinning (which boxes value types), we need to assign the modified + // value back to the reference parameter (but only if it has an out or in/out flow direction). + if ((p.Flow == FlowDirection.Out || p.Flow == FlowDirection.Undefined) && p.Reference) { assign_statements.Add(String.Format( "{0} = ({1}){0}_ptr.Target;", @@ -444,7 +446,12 @@ namespace Bind.Structures p.Array > 0 ? p.Name : "&" + p.Name, indirection_levels[p.IndirectionLevel])); - if (p.Flow == FlowDirection.Out && p.Array == 0) // Fixed Arrays of blittable types don't need explicit assignment. + if (p.Name == "pixels_ptr") + System.Diagnostics.Debugger.Break(); + + // Arrays are not value types, so we don't need to do anything for them. + // Pointers are passed directly by value, so we don't need to assign them back either (they don't change). + if ((p.Flow == FlowDirection.Out || p.Flow == FlowDirection.Undefined) && p.Reference) { assign_statements.Add(String.Format("{0} = *{0}_ptr;", p.Name)); } diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 4bf3ac57..24ba11b0 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -600,6 +600,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -707,6 +708,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -1678,6 +1680,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glElementPointerAPPLE((OpenTK.Graphics.OpenGL.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -1870,6 +1873,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -2318,6 +2322,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetTexParameterPointervAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (OpenTK.Graphics.OpenGL.AppleTextureRange)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T2)@params_ptr.Target; } finally { @@ -3277,6 +3282,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureRangeAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -3397,6 +3403,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -3793,6 +3800,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glBufferDataARB((OpenTK.Graphics.OpenGL.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.BufferUsageArb)usage); + data = (T2)data_ptr.Target; } finally { @@ -4019,6 +4027,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glBufferSubDataARB((OpenTK.Graphics.OpenGL.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -4344,6 +4353,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T6)data_ptr.Target; } finally { @@ -4650,6 +4660,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T7)data_ptr.Target; } finally { @@ -4981,6 +4992,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T8)data_ptr.Target; } finally { @@ -5322,6 +5334,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T6)data_ptr.Target; } finally { @@ -5633,6 +5646,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T8)data_ptr.Target; } finally { @@ -5989,6 +6003,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T10)data_ptr.Target; } finally { @@ -7109,6 +7124,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -8573,6 +8589,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetBufferPointervARB((OpenTK.Graphics.OpenGL.ArbVertexBufferObject)target, (OpenTK.Graphics.OpenGL.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T2)@params_ptr.Target; } finally { @@ -8703,6 +8720,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetBufferSubDataARB((OpenTK.Graphics.OpenGL.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -8924,6 +8942,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); + img = (T2)img_ptr.Target; } finally { @@ -9951,6 +9970,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetProgramStringARB((OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb)target, (OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T2)@string_ptr.Target; } finally { @@ -11822,6 +11842,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -11929,6 +11950,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -12420,6 +12442,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.OpenGL.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -15381,6 +15404,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glProgramStringARB((OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb)target, (OpenTK.Graphics.OpenGL.ArbVertexProgram)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T3)@string_ptr.Target; } finally { @@ -20842,6 +20866,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T5)pointer_ptr.Target; } finally { @@ -21119,6 +21144,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T5)pointer_ptr.Target; } finally { @@ -21601,6 +21627,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.OpenGL.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -23204,6 +23231,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glElementPointerATI((OpenTK.Graphics.OpenGL.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -24144,7 +24172,9 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.AtiVertexArrayObject)usage); + Int32 retval = Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.AtiVertexArrayObject)usage); + pointer = (T1)pointer_ptr.Target; + return retval; } finally { @@ -25120,6 +25150,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.AtiVertexArrayObject)preserve); + pointer = (T3)pointer_ptr.Target; } finally { @@ -25227,6 +25258,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.AtiVertexArrayObject)preserve); + pointer = (T3)pointer_ptr.Target; } finally { @@ -27784,6 +27816,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glBufferData((OpenTK.Graphics.OpenGL.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.BufferUsageHint)usage); + data = (T2)data_ptr.Target; } finally { @@ -28010,6 +28043,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glBufferSubData((OpenTK.Graphics.OpenGL.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -28278,6 +28312,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCallLists((Int32)n, (OpenTK.Graphics.OpenGL.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); + lists = (T2)lists_ptr.Target; } finally { @@ -31096,6 +31131,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -31332,6 +31368,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorSubTable((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (Int32)start, (Int32)count, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T5)data_ptr.Target; } finally { @@ -31608,6 +31645,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorTable((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); + table = (T5)table_ptr.Target; } finally { @@ -32160,6 +32198,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage1D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T6)data_ptr.Target; } finally { @@ -32466,6 +32505,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage2D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T7)data_ptr.Target; } finally { @@ -32797,6 +32837,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexImage3D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T8)data_ptr.Target; } finally { @@ -33138,6 +33179,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T6)data_ptr.Target; } finally { @@ -33449,6 +33491,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T8)data_ptr.Target; } finally { @@ -33805,6 +33848,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T10)data_ptr.Target; } finally { @@ -34161,6 +34205,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glConvolutionFilter1D((OpenTK.Graphics.OpenGL.ConvolutionTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T5)image_ptr.Target; } finally { @@ -34442,6 +34487,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glConvolutionFilter2D((OpenTK.Graphics.OpenGL.ConvolutionTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T6)image_ptr.Target; } finally { @@ -36959,6 +37005,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + indices = (T3)indices_ptr.Target; } finally { @@ -37161,6 +37208,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)basevertex); + indices = (T3)indices_ptr.Target; } finally { @@ -37267,6 +37315,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElementsInstanced((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -37373,6 +37422,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElementsInstancedBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32)basevertex); + indices = (T3)indices_ptr.Target; } finally { @@ -37503,6 +37553,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T4)pixels_ptr.Target; } finally { @@ -37739,6 +37790,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + indices = (T5)indices_ptr.Target; } finally { @@ -38016,6 +38068,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + indices = (T5)indices_ptr.Target; } finally { @@ -38262,6 +38315,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)basevertex); + indices = (T5)indices_ptr.Target; } finally { @@ -38369,6 +38423,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)basevertex); + indices = (T5)indices_ptr.Target; } finally { @@ -38516,6 +38571,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -39694,6 +39750,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glFogCoordPointer((OpenTK.Graphics.OpenGL.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -42814,6 +42871,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetBufferPointerv((OpenTK.Graphics.OpenGL.BufferTarget)target, (OpenTK.Graphics.OpenGL.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T2)@params_ptr.Target; } finally { @@ -43020,6 +43078,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetBufferSubData((OpenTK.Graphics.OpenGL.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -43344,6 +43403,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetColorTable((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); + table = (T3)table_ptr.Target; } finally { @@ -43791,6 +43851,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetCompressedTexImage((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); + img = (T2)img_ptr.Target; } finally { @@ -43997,6 +44058,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetConvolutionFilter((OpenTK.Graphics.OpenGL.ConvolutionTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T3)image_ptr.Target; } finally { @@ -44662,6 +44724,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetHistogram((OpenTK.Graphics.OpenGL.HistogramTarget)target, (bool)reset, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); + values = (T4)values_ptr.Target; } finally { @@ -46270,6 +46333,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetMinmax((OpenTK.Graphics.OpenGL.MinmaxTarget)target, (bool)reset, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); + values = (T4)values_ptr.Target; } finally { @@ -47340,6 +47404,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPointerv((OpenTK.Graphics.OpenGL.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T1)@params_ptr.Target; } finally { @@ -48532,6 +48597,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilter((OpenTK.Graphics.OpenGL.SeparableTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); + row = (T3)row_ptr.Target; } finally { @@ -48782,6 +48848,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilter((OpenTK.Graphics.OpenGL.SeparableTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); + column = (T4)column_ptr.Target; } finally { @@ -49020,6 +49087,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilter((OpenTK.Graphics.OpenGL.SeparableTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); + span = (T5)span_ptr.Target; } finally { @@ -50548,6 +50616,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetTexImage((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T4)pixels_ptr.Target; } finally { @@ -53031,6 +53100,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -53233,6 +53303,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -53710,6 +53781,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glIndexPointer((OpenTK.Graphics.OpenGL.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -54030,6 +54102,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glInterleavedArrays((OpenTK.Graphics.OpenGL.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -56926,6 +56999,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -57185,6 +57259,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -57466,6 +57541,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElements((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -57715,6 +57791,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32*)basevertex); + indices = (T3)indices_ptr.Target; } finally { @@ -57830,6 +57907,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32*)basevertex_ptr); + indices = (T3)indices_ptr.Target; } finally { @@ -57971,6 +58049,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsBaseVertex((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32*)basevertex_ptr); + indices = (T3)indices_ptr.Target; } finally { @@ -60944,6 +61023,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNormalPointer((OpenTK.Graphics.OpenGL.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -64011,6 +64091,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T6)pixels_ptr.Target; } finally { @@ -65884,6 +65965,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -66330,6 +66412,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSeparableFilter2D((OpenTK.Graphics.OpenGL.SeparableTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); + row = (T6)row_ptr.Target; } finally { @@ -66608,6 +66691,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSeparableFilter2D((OpenTK.Graphics.OpenGL.SeparableTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); + column = (T7)column_ptr.Target; } finally { @@ -68900,6 +68984,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.OpenGL.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -69696,6 +69781,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexImage1D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T7)pixels_ptr.Target; } finally { @@ -70027,6 +70113,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexImage2D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -70397,6 +70484,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexImage3D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -71096,6 +71184,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage1D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T6)pixels_ptr.Target; } finally { @@ -71407,6 +71496,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage2D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -71768,6 +71858,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage3D((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -80468,6 +80559,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribParameter)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -80575,6 +80667,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribParameter)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -80719,6 +80812,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T5)pointer_ptr.Target; } finally { @@ -80996,6 +81090,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T5)pointer_ptr.Target; } finally { @@ -81266,6 +81361,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -83456,6 +83552,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glBinormalPointerEXT((OpenTK.Graphics.OpenGL.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -83827,6 +83924,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -84063,6 +84161,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorSubTableEXT((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (Int32)start, (Int32)count, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T5)data_ptr.Target; } finally { @@ -84339,6 +84438,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorTableEXT((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); + table = (T5)table_ptr.Target; } finally { @@ -84581,6 +84681,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -84687,6 +84788,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T8)bits_ptr.Target; } finally { @@ -84793,6 +84895,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -84899,6 +85002,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -85005,6 +85109,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -85111,6 +85216,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T11)bits_ptr.Target; } finally { @@ -85217,6 +85323,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -85324,6 +85431,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -85434,6 +85542,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T8)bits_ptr.Target; } finally { @@ -85541,6 +85650,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T8)bits_ptr.Target; } finally { @@ -85651,6 +85761,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -85758,6 +85869,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -85868,6 +85980,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -85975,6 +86088,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T7)bits_ptr.Target; } finally { @@ -86085,6 +86199,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -86192,6 +86307,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T9)bits_ptr.Target; } finally { @@ -86302,6 +86418,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T11)bits_ptr.Target; } finally { @@ -86409,6 +86526,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); + bits = (T11)bits_ptr.Target; } finally { @@ -86553,6 +86671,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T5)image_ptr.Target; } finally { @@ -86834,6 +86953,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T6)image_ptr.Target; } finally { @@ -88624,6 +88744,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -88764,6 +88885,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + indices = (T5)indices_ptr.Target; } finally { @@ -89041,6 +89163,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + indices = (T5)indices_ptr.Target; } finally { @@ -89641,6 +89764,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glFogCoordPointerEXT((OpenTK.Graphics.OpenGL.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -90875,6 +90999,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetColorTableEXT((OpenTK.Graphics.OpenGL.ColorTableTarget)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -91303,6 +91428,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); + img = (T3)img_ptr.Target; } finally { @@ -91409,6 +91535,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); + img = (T3)img_ptr.Target; } finally { @@ -91516,6 +91643,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); + img = (T3)img_ptr.Target; } finally { @@ -91650,6 +91778,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); + image = (T3)image_ptr.Target; } finally { @@ -92534,6 +92663,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetHistogramEXT((OpenTK.Graphics.OpenGL.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); + values = (T4)values_ptr.Target; } finally { @@ -93809,6 +93939,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetMinmaxEXT((OpenTK.Graphics.OpenGL.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); + values = (T4)values_ptr.Target; } finally { @@ -94537,6 +94668,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T5)pixels_ptr.Target; } finally { @@ -95095,6 +95227,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T2)@params_ptr.Target; } finally { @@ -95202,6 +95335,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T2)@params_ptr.Target; } finally { @@ -95312,6 +95446,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -95419,6 +95554,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -96116,6 +96252,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T3)@string_ptr.Target; } finally { @@ -96223,6 +96360,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T3)@string_ptr.Target; } finally { @@ -96447,6 +96585,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T2)data_ptr.Target; } finally { @@ -96554,6 +96693,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T2)data_ptr.Target; } finally { @@ -96664,6 +96804,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetPointervEXT((OpenTK.Graphics.OpenGL.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T1)@params_ptr.Target; } finally { @@ -97092,6 +97233,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); + row = (T3)row_ptr.Target; } finally { @@ -97342,6 +97484,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); + column = (T4)column_ptr.Target; } finally { @@ -97580,6 +97723,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); + span = (T5)span_ptr.Target; } finally { @@ -97936,6 +98080,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T5)pixels_ptr.Target; } finally { @@ -98043,6 +98188,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T5)pixels_ptr.Target; } finally { @@ -99490,6 +99636,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T2)data_ptr.Target; } finally { @@ -99597,6 +99744,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T2)data_ptr.Target; } finally { @@ -99902,6 +100050,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glIndexPointerEXT((OpenTK.Graphics.OpenGL.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -101108,6 +101257,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -101367,6 +101517,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -101648,6 +101799,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); + indices = (T3)indices_ptr.Target; } finally { @@ -101925,6 +102077,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.OpenGL.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -102296,6 +102449,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -102402,6 +102556,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -102508,6 +102663,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -102853,6 +103009,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T7)pixels_ptr.Target; } finally { @@ -102959,6 +103116,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -103065,6 +103223,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.OpenGL.TextureUnit)texunit, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T11)pixels_ptr.Target; } finally { @@ -103171,6 +103330,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)usage); + data = (T2)data_ptr.Target; } finally { @@ -103278,6 +103438,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)usage); + data = (T2)data_ptr.Target; } finally { @@ -103388,6 +103549,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -103495,6 +103657,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + data = (T3)data_ptr.Target; } finally { @@ -104584,6 +104747,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T4)@string_ptr.Target; } finally { @@ -104691,6 +104855,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)target, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T4)@string_ptr.Target; } finally { @@ -104907,6 +105072,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNormalPointerEXT((OpenTK.Graphics.OpenGL.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -109135,6 +109301,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -109383,6 +109550,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); + row = (T6)row_ptr.Target; } finally { @@ -109661,6 +109829,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.OpenGL.ExtConvolution)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); + column = (T7)column_ptr.Target; } finally { @@ -109943,6 +110112,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T2)addr_ptr.Target; } finally { @@ -110050,6 +110220,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T2)addr_ptr.Target; } finally { @@ -110160,6 +110331,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T2)addr_ptr.Target; } finally { @@ -110267,6 +110439,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T2)addr_ptr.Target; } finally { @@ -110939,6 +111112,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTangentPointerEXT((OpenTK.Graphics.OpenGL.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -111098,6 +111272,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.OpenGL.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -111354,6 +111529,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexImage3DEXT((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -111827,6 +112003,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage1DEXT((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T6)pixels_ptr.Target; } finally { @@ -112138,6 +112315,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage2DEXT((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -112499,6 +112677,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage3DEXT((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -112870,6 +113049,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -112977,6 +113157,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T8)pixels_ptr.Target; } finally { @@ -113087,6 +113268,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -113194,6 +113376,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -113304,6 +113487,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -113411,6 +113595,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -113961,6 +114146,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T7)pixels_ptr.Target; } finally { @@ -114068,6 +114254,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T7)pixels_ptr.Target; } finally { @@ -114178,6 +114365,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -114285,6 +114473,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T9)pixels_ptr.Target; } finally { @@ -114395,6 +114584,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T11)pixels_ptr.Target; } finally { @@ -114502,6 +114692,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T11)pixels_ptr.Target; } finally { @@ -116084,6 +116275,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T3)addr_ptr.Target; } finally { @@ -116191,6 +116383,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.OpenGL.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); + addr = (T3)addr_ptr.Target; } finally { @@ -117705,6 +117898,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -117812,6 +118006,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.OpenGL.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -117946,6 +118141,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -118177,6 +118373,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.OpenGL.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T3)pointer_ptr.Target; } finally { @@ -118330,6 +118527,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); + @string = (T1)@string_ptr.Target; } finally { @@ -118654,6 +118852,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T3)pointer_ptr.Target; } finally { @@ -118815,6 +119014,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.OpenGL.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T2)pointer_ptr.Target; } finally { @@ -118921,6 +119121,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glIndexPointerListIBM((OpenTK.Graphics.OpenGL.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T2)pointer_ptr.Target; } finally { @@ -119087,6 +119288,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.OpenGL.BeginMode*)mode, (Int32*)count, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32)modestride); + indices = (T3)indices_ptr.Target; } finally { @@ -119202,6 +119404,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.OpenGL.BeginMode*)mode_ptr, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32)modestride); + indices = (T3)indices_ptr.Target; } finally { @@ -119343,6 +119546,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.OpenGL.BeginMode*)mode_ptr, (Int32*)count_ptr, (OpenTK.Graphics.OpenGL.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount, (Int32)modestride); + indices = (T3)indices_ptr.Target; } finally { @@ -119479,6 +119683,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNormalPointerListIBM((OpenTK.Graphics.OpenGL.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T2)pointer_ptr.Target; } finally { @@ -119585,6 +119790,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.OpenGL.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T3)pointer_ptr.Target; } finally { @@ -119691,6 +119897,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.OpenGL.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T3)pointer_ptr.Target; } finally { @@ -119797,6 +120004,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); + pointer = (T3)pointer_ptr.Target; } finally { @@ -119973,6 +120181,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -120194,6 +120403,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glNormalPointervINTEL((OpenTK.Graphics.OpenGL.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -120400,6 +120610,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -120626,6 +120837,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -124930,6 +125142,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetMapControlPointsNV((OpenTK.Graphics.OpenGL.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.OpenGL.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); + points = (T6)points_ptr.Target; } finally { @@ -125037,6 +125250,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetMapControlPointsNV((OpenTK.Graphics.OpenGL.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.OpenGL.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); + points = (T6)points_ptr.Target; } finally { @@ -127303,6 +127517,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.OpenGL.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -127410,6 +127625,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.OpenGL.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -128166,6 +128382,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMapControlPointsNV((OpenTK.Graphics.OpenGL.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.OpenGL.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); + points = (T8)points_ptr.Target; } finally { @@ -128273,6 +128490,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glMapControlPointsNV((OpenTK.Graphics.OpenGL.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.OpenGL.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); + points = (T8)points_ptr.Target; } finally { @@ -128812,6 +129030,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glPixelDataRangeNV((OpenTK.Graphics.OpenGL.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally { @@ -131973,6 +132192,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T1)pointer_ptr.Target; } finally { @@ -135470,6 +135690,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.OpenGL.VertexAttribParameterArb)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -135747,6 +135968,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.OpenGL.VertexAttribParameterArb)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T4)pointer_ptr.Target; } finally { @@ -138220,6 +138442,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glColorTableSGI((OpenTK.Graphics.OpenGL.SgiColorTable)target, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); + table = (T5)table_ptr.Target; } finally { @@ -138755,6 +138978,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glGetColorTableSGI((OpenTK.Graphics.OpenGL.SgiColorTable)target, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); + table = (T3)table_ptr.Target; } finally { @@ -139734,6 +139958,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexImage4DSGIS((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (OpenTK.Graphics.OpenGL.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T10)pixels_ptr.Target; } finally { @@ -139840,6 +140065,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.OpenGL.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.OpenGL.PixelFormat)format, (OpenTK.Graphics.OpenGL.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + pixels = (T12)pixels_ptr.Target; } finally { @@ -141052,6 +141278,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.OpenGL.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + @params = (T1)@params_ptr.Target; } finally { @@ -142325,6 +142552,7 @@ namespace OpenTK.Graphics.OpenGL try { Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.OpenGL.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + pointer = (T2)pointer_ptr.Target; } finally {