mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:05:29 +00:00
Fixed GL.GetBoolean (was GL.GetBoolea because the generator treated glGetBooleanv as a NV extension).
This commit is contained in:
parent
857003cd3f
commit
386766071f
|
@ -28,7 +28,7 @@ namespace Bind.Structures
|
|||
bool? cls_compliance_overriden;
|
||||
|
||||
protected static Regex endings = new Regex(@"((((d|f|fi)|u?[isb])_?v?)|v)", RegexOptions.Compiled | RegexOptions.RightToLeft);
|
||||
protected static Regex endingsNotToTrim = new Regex("(ib|[tdrey]s|[eE]n[vd]|bled|Flagv|Tess|Status|Pixels|Instanced|Indexed|Varyings)", RegexOptions.Compiled | RegexOptions.RightToLeft);
|
||||
protected static Regex endingsNotToTrim = new Regex("(ib|[tdrey]s|[eE]n[vd]|bled|Flag|Tess|Status|Pixels|Instanced|Indexed|Varyings|Boolean)", RegexOptions.Compiled | RegexOptions.RightToLeft);
|
||||
|
||||
// Add a trailing v to functions matching this regex. Used to differntiate between overloads taking both
|
||||
// a 'type' and a 'ref type' (such overloads are not CLS Compliant).
|
||||
|
@ -57,7 +57,7 @@ namespace Bind.Structures
|
|||
}
|
||||
}
|
||||
}
|
||||
Console.WriteLine("Marking CLS compliance for wrappers.");
|
||||
Console.WriteLine("Enforcing CLS compliance.");
|
||||
MarkCLSCompliance(Function.Wrappers);
|
||||
delegatesLoaded = true;
|
||||
}
|
||||
|
|
|
@ -196,8 +196,6 @@ namespace Bind
|
|||
|
||||
internal static string GetGL2Extension(string name)
|
||||
{
|
||||
name = name.ToUpper();
|
||||
//if (name.EndsWith("TEXT")) { return ""; }
|
||||
if (name.EndsWith("ARB")) { return "Arb"; }
|
||||
if (name.EndsWith("EXT")) { return "Ext"; }
|
||||
if (name.EndsWith("ATI")) { return "Ati"; }
|
||||
|
@ -219,7 +217,7 @@ namespace Bind
|
|||
if (name.EndsWith("APPLE")) { return "Apple"; }
|
||||
if (name.EndsWith("OML")) { return "Oml"; }
|
||||
if (name.EndsWith("I3D")) { return "I3d"; }
|
||||
return "";
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -642,6 +642,9 @@ namespace OpenTK.Graphics
|
|||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleani_v", ExactSpelling = true)]
|
||||
internal extern static unsafe void GetBooleani_v(OpenTK.Graphics.GetIndexedPName target, UInt32 index, [Out] bool* data);
|
||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)]
|
||||
internal extern static unsafe void GetBooleanv(OpenTK.Graphics.GetPName pname, [Out] bool* @params);
|
||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)]
|
||||
internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferParameterName pname, [Out] Int32* @params);
|
||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||
|
|
Loading…
Reference in a new issue