mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 05:25:37 +00:00
Fixed a regression where pure IntPtr parameters (size etc etc) obtained 'object' overloads.
This commit is contained in:
parent
f7a8108458
commit
c54fcdf724
|
@ -485,10 +485,8 @@ namespace Bind.Structures
|
|||
|
||||
protected virtual void TranslateParameters()
|
||||
{
|
||||
//if (this.Name.Contains("VertexPointer"))
|
||||
//{
|
||||
// Console.WriteLine();
|
||||
//}
|
||||
// Iterates through all parameters, calling the Parameter.Translate() function.
|
||||
|
||||
for (int i = 0; i < Parameters.Count; i++)
|
||||
{
|
||||
Parameters[i] = Parameter.Translate(Parameters[i], this.Category);
|
||||
|
|
|
@ -345,7 +345,7 @@ namespace Bind.Structures
|
|||
// p.CurrentType = CSTypes[p.CurrentType];
|
||||
|
||||
// Translate pointer parameters
|
||||
if (p.Pointer || p.CurrentType == "IntPtr")
|
||||
if (p.Pointer)/* || p.CurrentType == "IntPtr")*/
|
||||
{
|
||||
p.WrapperType = WrapperTypes.ArrayParameter;
|
||||
|
||||
|
@ -360,7 +360,7 @@ namespace Bind.Structures
|
|||
p.Pointer = false;
|
||||
p.WrapperType = WrapperTypes.None;
|
||||
}
|
||||
else if (p.CurrentType.ToLower().Contains("void") || p.CurrentType.Contains("IntPtr"))
|
||||
else if (p.CurrentType.ToLower().Contains("void")) /*|| p.CurrentType.Contains("IntPtr"))*/
|
||||
{
|
||||
p.CurrentType = "IntPtr";
|
||||
p.Pointer = false;
|
||||
|
|
Loading…
Reference in a new issue