protongun's picture

isShader(obj) and isProgram(obj) both return true

Is this expected or

int shaderObj = GL.CreateShader(type);
            GL.ShaderSource(shaderObj, src);
            GL.CompileShader(shaderObj);
            CheckStatus(shaderObj);
public static void CheckStatus(int obj)
        {
 
            bool a = GL.IsShader(obj);
            bool k = GL.IsProgram(obj);
 
        }

Strangely, both isShader and isProgram return true. Is this normal OpenGL behaviour? Is this a bug in OpenTK? My program was working fine before but recently I changed my graphics card to a NVidia Geforce GTX 550 Ti and updated to the latest drivers (now that I think on it, it was a beta release).

I will try to downgrade to the latest stable Nvidia drivers and see if the error persists.


Comments

Comment viewing options

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

This is indeed a bug, which has been fixed in opentk/develop. The fix will be part of the July release, this week.

protongun's picture

Good to hear, thank you