maxwills's picture

OpenTK 1.1, and ambiguous functions.

I just downloaded the 1.1 version of opentk, and updated my old project references. It seems that there is some issues with opentk in some function overloads.
I am getting the following error:

Error 1 'Uniform3' is ambiguous because multiple kinds of members with this name exist in class 'OpenTK.Graphics.OpenGL.GL' Intellisense fails to recognize any overload of the function. Is there any work around for this? There was no problem with OpenTK 1.0
Uniform1 seems to be fine, however, Uniform2,3, and 4 seems just wrong.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
maxwills's picture

I've managed to get it working. I modified the OpenTK source, so each overload of the problematic functions where taken separately. ie: uniform3f, uniform3i, etc. As it is in raw opengl.

the Fiddler's picture

Edit: see my next post.

This is certainly a bug, can you please file a bug report at


the Fiddler's picture

After more testing, this is not actually a bug in OpenTK but is due to the way VB.Net chooses function overloads.

I have implemented a workaround in 1c1607d, which appears to make VB.Net work again. This will be part of the 1.1 release on 15 Feb.

elknif's picture

This came up for me as well, but in the OpenGL4 namespace. Using the workaround listed, I modified the csproj file. At first glance, it appears to be working. If I knew what I was doing with git, I'd help with the change there. I'm no where near that level yet.

What I did
I took this block of text:

    <Compile Include="Graphics\OpenGL4\Helper.cs">
    <Compile Include="Graphics\OpenGL4\ErrorHelper.cs">

and moved it after this line:

    <Compile Include="Graphics\OpenGL4\GL4.cs" />