mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 06:11:14 +00:00
Fixed convenience return type implementation
This commit is contained in:
parent
ec67232e88
commit
e48a624003
|
@ -251,7 +251,7 @@ namespace OpenTK.Rewrite
|
||||||
// GetBooleanv(pname, &result);
|
// GetBooleanv(pname, &result);
|
||||||
// return result;
|
// return result;
|
||||||
// }
|
// }
|
||||||
body.Variables.Add(new VariableDefinition(native.ReturnType));
|
body.Variables.Add(new VariableDefinition(wrapper.ReturnType));
|
||||||
il.Emit(OpCodes.Ldloca, body.Variables.Count - 1);
|
il.Emit(OpCodes.Ldloca, body.Variables.Count - 1);
|
||||||
}
|
}
|
||||||
else if (difference == 1 && wrapper.ReturnType.Name == "Void")
|
else if (difference == 1 && wrapper.ReturnType.Name == "Void")
|
||||||
|
|
Loading…
Reference in a new issue