Put glTexCoord inside glBegin/glEnd and before glVertex.
That should not really be the problem, glTexCoord can be called at any time since it just modifies state. glVertex* is only allowed to be called inside glBegin/glEnd.
That said, glTexCoord is just severely, extremely deprecated. You could try to fix it. Try glTexCoord2f instead of glTexCoord1d since that was much more used even back then and maybe the emulation for the very uncommon functions got broken in a driver update. I highly doubt that though. It's far more likely your program relied on undefined behavior of OpenGL and the behavior changed in newer drivers.
It's also possible that whatever you are using to create the OpenGL context requests a context without the deprecated functions.
Personally, I would not bother to fix it. The old deprecated functionality of OpenGL is very useless. Both from a performance point of view as well as from a learning point of view. The way you would do these things now is just very different.