From 947162ce6c9ece4f8985604f5251dad7c5ded003 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Mon, 28 Aug 2017 17:01:05 +0200 Subject: [PATCH] Correct altered logic. --- src/Generator.Rewrite/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.Rewrite/Program.cs b/src/Generator.Rewrite/Program.cs index 459198da..d48eff74 100644 --- a/src/Generator.Rewrite/Program.cs +++ b/src/Generator.Rewrite/Program.cs @@ -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);