The texture one I fixed, but the shader one is hard because I don't know the context, are you familiar with gdb? If it's asking too much, I understand.
So all shader binds are giving GL_INVALID_OPERATION? Damn, this is hard to debug in these conditions, I think I will have to find an AMD computer to fix it... Thanks for all the help.