Correct altered logic.

This commit is contained in:
Jarl Gullberg 2017-08-28 17:01:05 +02:00
parent 6eb77be281
commit 947162ce6c
No known key found for this signature in database
GPG key ID: FBB69BD7CAE095A0

View file

@ -301,7 +301,7 @@ namespace OpenTK.Rewrite
generatedVariables = EmitConvenienceWrapper(wrapper, native, difference, body, il);
}
if (Options.UseDLLImport)
if (slot == -1 || Options.UseDLLImport)
{
// issue DllImport call
EmitCall(il, native);