Hello,
I have the following scenario:
I run a program in CodeXL everything works fine, just when I close the program CodeXL reports several API Errors which are all thrown from "glDeleteProgram(id)".
It is correct that at the end of my application all shader programs are deleted but I dont understand why there is are API Errors like:
OpenGL Debug Output: API Error, glGetProgramiv parameter <program> has an invalid value '3': must be a valid program object name (GL_INVALID_VALUE)
OpenGL Debug Output: API Error, glGetProgramiv parameter <program> has an invalid value '3': must be a valid program object name (GL_INVALID_VALUE)
OpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '1': must be a valid shader object name (GL_INVALID_VALUE)
OpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '1': must be a valid shader object name (GL_INVALID_VALUE)
OpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '2': must be a valid shader object name (GL_INVALID_VALUE)
OpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '2': must be a valid shader object name (GL_INVALID_VALUE)
Program 3 was used in the shader and worked correctly, ids 1 and 2 are the shaders for that program which I marked for deletion (glDeleteShader and that the shader id to 0 afterwards) after glLinkProgram.
Since I can not look into glDeleteProgram, I can not say what is going wrong, I hope/think that I am doing everything right.
Maybe somebody has a hint or can Report the same behaviour?
Thank you
Marc