mesa: fix incorrect error code in _mesa_FramebufferTexture1D/3DEXT()