mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-25 00:41:04 +00:00
[GL] Fixed invalid IL instruction in Get*() and Delete*() functions
This commit is contained in:
parent
d8eda71a2c
commit
2bcf153475
|
@ -452,9 +452,10 @@ namespace OpenTK.Rewrite
|
||||||
private static void EmitConvenienceWrapper(MethodDefinition wrapper,
|
private static void EmitConvenienceWrapper(MethodDefinition wrapper,
|
||||||
MethodDefinition native, int difference, MethodBody body, ILProcessor il)
|
MethodDefinition native, int difference, MethodBody body, ILProcessor il)
|
||||||
{
|
{
|
||||||
if (wrapper.Parameters.Count > 1)
|
if (wrapper.Parameters.Count > 2)
|
||||||
{
|
{
|
||||||
EmitParameters(wrapper, body, il);
|
// Todo: emit all parameters bar the last two
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wrapper.ReturnType.Name != "Void")
|
if (wrapper.ReturnType.Name != "Void")
|
||||||
|
@ -483,6 +484,7 @@ namespace OpenTK.Rewrite
|
||||||
// return result;
|
// return result;
|
||||||
// }
|
// }
|
||||||
body.Variables.Add(new VariableDefinition(wrapper.ReturnType));
|
body.Variables.Add(new VariableDefinition(wrapper.ReturnType));
|
||||||
|
EmitParameters(wrapper, body, il);
|
||||||
il.Emit(OpCodes.Ldloca, body.Variables.Count - 1);
|
il.Emit(OpCodes.Ldloca, body.Variables.Count - 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue