Generate legacy overloads for EdgeFlagv
authorFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 11:37:02 +0000 (12:37 +0100)
committerFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 11:54:04 +0000 (12:54 +0100)
src/Generator.Bind/Specifications/GL2/overrides.xml
src/OpenTK/Graphics/OpenGL/GL.cs

index ae25fb0f1eb52707b3523a2247faf42b2e1c0daa..391a95d16dbab17df56bd3e8c0e2885d652617d6 100644 (file)
       </param>
     </function>
 
+    <!--  For backwards compatibility -->
+    <function name="EdgeFlagv" extension="Core">
+      <param name="flag" legacyArrayParameter="true" />
+    </function>
   </replace>
 
   <overload name="glcore">
         <type>BeginMode</type>
       </param>
     </function>
-    <function name="EdgeFlagv" extension="Core" obsolete="Use ref overload instead">
-      <param name="flag">
-        <count>0</count>
-      </param>
-    </function>
     <function name="GetObjectLabel" extension="Core">
       <param name="length">
         <count>0</count>
index f7df5c78ac06306fa3c11f448e86e19c57dd1ea4..493be532e181771d588eac37afce3a6df089d9a7 100644 (file)
@@ -39011,7 +39011,7 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="flag">[length: 1]
         /// Specifies the current edge flag value, either True or False. The initial value is True.
         /// </param>
-        [Obsolete("Use ref overload instead")]
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "VERSION_1_0", Version = "1.0", EntryPoint = "glEdgeFlagv")]
         [CLSCompliant(false)]
         public static void EdgeFlag([CountAttribute(Count = 1)] bool[] flag) { throw new BindingsNotRewrittenException(); }
@@ -39022,7 +39022,6 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="flag">[length: 1]
         /// Specifies the current edge flag value, either True or False. The initial value is True.
         /// </param>
-        [Obsolete("Use ref overload instead")]
         [AutoGenerated(Category = "VERSION_1_0", Version = "1.0", EntryPoint = "glEdgeFlagv")]
         [CLSCompliant(false)]
         public static unsafe void EdgeFlag([CountAttribute(Count = 1)] bool* flag) { throw new BindingsNotRewrittenException(); }