I have put my code on pastebin, because it has hightlighting and Linenumbers, which makes it easier:
http://pastebin.com/1Fwywctk
The Error:
http://h-4.abload.de/img/glerrorjq3e.pngOpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '1': must be a valid shader object name (GL_INVALID_VALUE)
Now, I use only 1 glShaderiv Function and there is no error.
Also, in my Code glError() returns nothing but GL_NO_ERROR.
According to gDEBug, my Error is on Line 60, when I look at the Stacktrace.
But when I place a check there, everything is okay.
Maybe it is a problem with the drivers?
In gDEBug it also says I have compability profile for OpenGL 3.3, but when I query the GL_VERSION, it says Core, as I requested. Very weird.
I use a HD4890 with the latest ATI Drivers.
Thanks for any help, I really can't solve it.