if texture is invalid, glFramebufferTexture2D needs to throw GL_INVALID_OPERATION
Texture objects can be attached in different attach points of the frambuffer.