From a005fab243f5fce063e528a492d3a855f8f324cf Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Wed, 23 Oct 2013 11:42:24 +0200 Subject: [PATCH] Prefer overrides with exact name matches over generic name matches. For instance, if we override both ClearBufferfi and ClearBuffer, then ClearBuffer{i f ui}v will be overriden be ClearBuffer and ClearBufferfi will be overriden by ClearBufferfi. This allows us to specialize overrides when necessary. --- Source/Bind/FuncProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Bind/FuncProcessor.cs b/Source/Bind/FuncProcessor.cs index b8544f10..f8b7a3f0 100644 --- a/Source/Bind/FuncProcessor.cs +++ b/Source/Bind/FuncProcessor.cs @@ -121,9 +121,9 @@ namespace Bind string ext = d.Extension; var function_override = - nav.SelectSingleNode(String.Format(Path, name, ext)) ?? nav.SelectSingleNode(String.Format(Path, d.Name, ext)) ?? - nav.SelectSingleNode(String.Format(Path, Utilities.StripGL2Extension(d.Name), ext)); + nav.SelectSingleNode(String.Format(Path, Utilities.StripGL2Extension(d.Name), ext)) ?? + nav.SelectSingleNode(String.Format(Path, name, ext)); return function_override; }