I’m trying to turn on/off vsync in my game after creating display and I get this error.
Any ideas why I might be getting this? I saw somewhere on the forums that this should be working.
I’m trying to turn on/off vsync in my game after creating display and I get this error.
Any ideas why I might be getting this? I saw somewhere on the forums that this should be working.
mine works both ways, whether i set the vsync before or after creating the display. surely something else is the problem.
I believe it has something to do with shaders. When I don’t create shaders, I can set it.
Work out which specific OpenGL call is causing this error. Is glGetError() gives you GL_NO_ERROR before and GL_INVALID_OPERATION afterwards.
Hmmmm thanks for suggestion… For some reason I didn’t think to check after which glcall I get the error. It seems that glGetShaderInfoLog is the command after which I get this error. Does that gl call change gl state or something?..
So once you know which function causes the error, you can look up the functions documentation which will tell you why this function will cause certain errors.
http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderInfoLog.xml
By the looks of things the id you give the function is not a shader object.