mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 07:55:39 +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()
|
protected virtual void TranslateParameters()
|
||||||
{
|
{
|
||||||
//if (this.Name.Contains("VertexPointer"))
|
// Iterates through all parameters, calling the Parameter.Translate() function.
|
||||||
//{
|
|
||||||
// Console.WriteLine();
|
|
||||||
//}
|
|
||||||
for (int i = 0; i < Parameters.Count; i++)
|
for (int i = 0; i < Parameters.Count; i++)
|
||||||
{
|
{
|
||||||
Parameters[i] = Parameter.Translate(Parameters[i], this.Category);
|
Parameters[i] = Parameter.Translate(Parameters[i], this.Category);
|
||||||
|
|
|
@ -345,7 +345,7 @@ namespace Bind.Structures
|
||||||
// p.CurrentType = CSTypes[p.CurrentType];
|
// p.CurrentType = CSTypes[p.CurrentType];
|
||||||
|
|
||||||
// Translate pointer parameters
|
// Translate pointer parameters
|
||||||
if (p.Pointer || p.CurrentType == "IntPtr")
|
if (p.Pointer)/* || p.CurrentType == "IntPtr")*/
|
||||||
{
|
{
|
||||||
p.WrapperType = WrapperTypes.ArrayParameter;
|
p.WrapperType = WrapperTypes.ArrayParameter;
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ namespace Bind.Structures
|
||||||
p.Pointer = false;
|
p.Pointer = false;
|
||||||
p.WrapperType = WrapperTypes.None;
|
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.CurrentType = "IntPtr";
|
||||||
p.Pointer = false;
|
p.Pointer = false;
|
||||||
|
|
Loading…
Reference in a new issue