Browse files

[OpenTK] Make VB.Net overload resolution happy

GLHelper.cs contains a number of overloads that cannot be resolved by
VB.Net. We cannot remove them, as that will break
backward-compatibility, but we can hide them by moving them after the
autogenerated overloads in GL.cs.

Terrible hack, but it appears to work.

Issue originally reported at http://www.opentk.com/node/3554 as "OpenTK
1.1, VB.net and ambiguous functions."
  • Loading branch information...
1 parent 30571f7 commit 1c1607da5663be481ed4c9b71bd75aa14013e623 @thefiddler thefiddler committed Feb 12, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/OpenTK/OpenTK.csproj
View
8 Source/OpenTK/OpenTK.csproj
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
@@ -462,15 +462,15 @@
<Compile Include="Graphics\ColorFormat.cs">
<SubType>Code</SubType>
</Compile>
- <Compile Include="Graphics\OpenGL\GLHelper.cs">
- <SubType>Code</SubType>
- </Compile>
<Compile Include="Graphics\OpenGL\GLEnums.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Graphics\OpenGL\GL.cs">
<SubType>Code</SubType>
</Compile>
+ <Compile Include="Graphics\OpenGL\GLHelper.cs">
+ <SubType>Code</SubType>
+ </Compile>
<Compile Include="Graphics\OpenGL\ErrorHelper.cs">
<SubType>Code</SubType>
</Compile>

0 comments on commit 1c1607d

Please sign in to comment.