diff --git a/Source/Bind/CL/CLGenerator.cs b/Source/Bind/CL/CLGenerator.cs index 9545b5c4..2f56dfa8 100644 --- a/Source/Bind/CL/CLGenerator.cs +++ b/Source/Bind/CL/CLGenerator.cs @@ -15,7 +15,7 @@ namespace Bind.CL if (String.IsNullOrEmpty(name)) throw new ArgumentNullException("name"); - glTypemap = "GL2/gl.tm"; + glTypemap = null; csTypemap = "csharp.tm"; enumSpec = name + "/signatures.xml"; diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 5754c064..599733dc 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -314,6 +314,9 @@ namespace Bind.GL2 Console.WriteLine("Reading opengl types."); Dictionary GLTypes = new Dictionary(); + if (specFile == null) + return GLTypes; + do { string line = specFile.ReadLine(); diff --git a/Source/Bind/Utilities.cs b/Source/Bind/Utilities.cs index d07a3757..6be0d4e2 100644 --- a/Source/Bind/Utilities.cs +++ b/Source/Bind/Utilities.cs @@ -76,6 +76,9 @@ namespace Bind internal static StreamReader OpenSpecFile(string folder, string file) { + if (String.IsNullOrEmpty(folder) || String.IsNullOrEmpty(file)) + return null; + Console.WriteLine(folder); Console.WriteLine(file); string path = Path.Combine(folder, file);